MDL-8269 - stats wasn't paying attention to run time settings as the strtotime argume...
authorpoltawski <poltawski>
Sun, 13 Jan 2008 18:46:55 +0000 (18:46 +0000)
committerpoltawski <poltawski>
Sun, 13 Jan 2008 18:46:55 +0000 (18:46 +0000)
admin/cron.php

index 4745b44469270be14a6cf25c604fd42c9ab02fc6..21e6ca940562bfbaab092a727a41d3c4089b1ddd 100644 (file)
     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)