Author: jfthomps
Date: Thu Sep 16 16:05:41 2010
New Revision: 997814

URL: http://svn.apache.org/viewvc?rev=997814&view=rev
Log:
modified newReservation - fixed bug where $imageid being empty would throw an 
error when setting $maxlen

Modified:
    incubator/vcl/trunk/web/.ht-inc/requests.php

Modified: incubator/vcl/trunk/web/.ht-inc/requests.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/requests.php?rev=997814&r1=997813&r2=997814&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/requests.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/requests.php Thu Sep 16 16:05:41 2010
@@ -159,7 +159,10 @@ function newReservation() {
        print "onclick='updateWaitTime(0);' value=now checked>Now<br>\n";
        print "&nbsp;&nbsp;&nbsp;<INPUT type=radio name=time value=future ";
        print "onclick='updateWaitTime(0);'>Later:\n";
-       $maxlen = $images[$imageid]['maxinitialtime'];
+       if(empty($imageid))
+               $maxlen = 0;
+       else
+               $maxlen = $images[$imageid]['maxinitialtime'];
        if($submitErr) {
                $hour24 = $hour;
                if($hour24 == 12) {


Reply via email to