Endless loop fix from stable

This commit is contained in:
moodler
2006-08-14 15:20:49 +00:00
parent 839958faf6
commit cfef9e55d0
+1 -1
View 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();