Author: jfthomps
Date: Fri Apr 9 20:48:15 2010
New Revision: 932598
URL: http://svn.apache.org/viewvc?rev=932598&view=rev
Log:
There were two places where getUserMaxTimes was being called (in editRequests
and printReserveItems) with 'initialmaxtime' as an argument, which doesn't make
sense given what it accepts as arguments. Fortunately, it defaulted to a sane
value.
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=932598&r1=932597&r2=932598&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/requests.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/requests.php Fri Apr 9 20:48:15 2010
@@ -2688,7 +2688,7 @@ function editRequest() {
$openend = 0;
$unixstart = datetimeToUnix($request["start"]);
$unixend = datetimeToUnix($request["end"]);
- $maxtimes = getUserMaxTimes("initialmaxtime");
+ $maxtimes = getUserMaxTimes();
$timeToNext = timeToNextReservation($request);
print "<H2>Modify Reservation</H2>\n";
@@ -3407,7 +3407,7 @@ function printReserveItems($modifystart=
return;
# create an array of usage times based on the user's max times
- $maxtimes = getUserMaxTimes("initialmaxtime");
+ $maxtimes = getUserMaxTimes();
if($maxlength > 0 && $maxlength < $maxtimes['initial'])
$maxtimes['initial'] = $maxlength;
if($imaging && $maxtimes['initial'] < 720) # make sure at least 12
hours available for imaging reservations