MDL-8269 - stats wasn't paying attention to run time settings as the strtotime

arguments were the wrong way round. Thanks to Mark Nielsen
This commit is contained in:
poltawski
2008-01-13 18:45:55 +00:00
parent f86a5be206
commit 3416e63f61
+1 -1
View File
@@ -430,7 +430,7 @@
if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) {
// check we're not before our runtime
$timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today");
$timetocheck = strtotime("today $CFG->statsruntimestarthour:$CFG->statsruntimestartminute");
if (time() > $timetocheck) {
$time = 60*60*20; // set it to 20 here for first run... (overridden by $CFG)