]> git.mjollnir.org Git - moodle.git/commitdiff
Endless loop fix from stable
authormoodler <moodler>
Mon, 14 Aug 2006 15:20:49 +0000 (15:20 +0000)
committermoodler <moodler>
Mon, 14 Aug 2006 15:20:49 +0000 (15:20 +0000)
lib/statslib.php

index 8aab1fe3d26d261de61d6769f14c5db3da5d8c50..48e939d40f10f03b05b96925bf09f4608bcd13bf 100644 (file)
@@ -98,7 +98,7 @@ function stats_cron_daily () {
     
     $days = 0;
     mtrace("starting at $timestart");
-    while ($midnight >= $nextmidnight) {
+    while ($midnight > $nextmidnight && $timestart < $nextmidnight) {
 
         $timesql = " (l.time > $timestart AND l.time < $nextmidnight) ";
         begin_sql();