Author: jfthomps
Date: Tue Dec 21 20:15:38 2010
New Revision: 1051635

URL: http://svn.apache.org/viewvc?rev=1051635&view=rev
Log:
VCL-361
Error is displayed on pages showing image list if last used image is deleted

modified newReservation: reversed if/else to set $maxlen to nonzero if $imageid 
exists in $images

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=1051635&r1=1051634&r2=1051635&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/requests.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/requests.php Tue Dec 21 20:15:38 2010
@@ -159,10 +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";
-       if(empty($imageid))
-               $maxlen = 0;
-       else
+       if(array_key_exists($imageid, $images))
                $maxlen = $images[$imageid]['maxinitialtime'];
+       else
+               $maxlen = 0;
        if($submitErr) {
                $hour24 = $hour;
                if($hour24 == 12) {


Reply via email to