You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/12/21 21:15:38 UTC
svn commit: r1051635 - /incubator/vcl/trunk/web/.ht-inc/requests.php
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 " <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) {