Revision: 1170
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1170&view=rev
Author:   cimorrison
Date:     2009-08-05 22:36:05 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
Fixed very minor problem (not normally visible to the user) that caused an 
'undefined' error in JavaScript when there are no rooms defined for an area.

Modified Paths:
--------------
    mrbs/trunk/web/edit_entry.php

Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php       2009-08-05 15:52:15 UTC (rev 1169)
+++ mrbs/trunk/web/edit_entry.php       2009-08-05 22:36:05 UTC (rev 1170)
@@ -628,7 +628,10 @@
                 }
                 // select the first entry by default to ensure
                 // that one room is selected to begin with
-                print "        roomsObj.options[0].selected = true;\n";
+                if ($j > 0)  // but only do this if there is a room
+                {
+                  print "        roomsObj.options[0].selected = true;\n";
+                }
                 print "        break;\n";
               }
             }


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to