Revision: 1379
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1379&view=rev
Author:   cimorrison
Date:     2010-07-23 21:20:09 +0000 (Fri, 23 Jul 2010)

Log Message:
-----------
Fixed undefined variable problem

Modified Paths:
--------------
    mrbs/branches/custom_entry_fields/web/edit_entry.php

Modified: mrbs/branches/custom_entry_fields/web/edit_entry.php
===================================================================
--- mrbs/branches/custom_entry_fields/web/edit_entry.php        2010-07-23 
20:15:37 UTC (rev 1378)
+++ mrbs/branches/custom_entry_fields/web/edit_entry.php        2010-07-23 
21:20:09 UTC (rev 1379)
@@ -54,6 +54,8 @@
 // Firstly we need to know if this is a new booking or modifying an old one
 // and if it's a modification we need to get all the old data from the db.
 // If we had $id passed in then it's a modification.
+$custom_fields = array();
+
 if (isset($id))
 {
   $sql = "SELECT *
@@ -79,7 +81,6 @@
   $area = get_area($row['room_id']);
   get_area_settings($area);
   
-  $custom_fields = array();
   foreach ($row as $column => $value)
   {
     switch ($column)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to