Author: jfthomps
Date: Wed May  6 15:49:12 2009
New Revision: 772322

URL: http://svn.apache.org/viewvc?rev=772322&view=rev
Log:
minor modification to showTimeTable - added conditional at beginning of main 
foreach loop to skip any time stamps in the past - this was to fix an odd 
corner case that caused showTimeTable to throw an error

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

Modified: incubator/vcl/trunk/web/.ht-inc/utils.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/utils.php?rev=772322&r1=772321&r2=772322&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/utils.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/utils.php Wed May  6 15:49:12 2009
@@ -5586,6 +5586,7 @@
                        if($current >= $times[$id][$count]["start"] && 
                           $current <  $times[$id][$count]["end"]) {
                                if($first) {
+                                       # set the previous 15 minute block to 
show as busy to allow for load time
                                        $first = 0;
                                        $reserveInfo[$id][$current - 
900]['blockRequest'] = 0;
                                        $reserveInfo[$id][$current - 
900]["scheduleclosed"] = 0;
@@ -5863,6 +5864,8 @@
        }
        $yesterday = "";
        foreach(array_keys($timeslots[$first]) as $stamp) {
+               if($stamp < $now)
+                       continue;
                print "        <TR>\n";
                $stampArr = getdate($stamp);
                $label = "";


Reply via email to