From: poltawski Date: Sun, 13 Jan 2008 18:46:55 +0000 (+0000) Subject: MDL-8269 - stats wasn't paying attention to run time settings as the strtotime argume... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=362594f2e4b9cb808870bce2c87012f2ecbf774d;p=moodle.git MDL-8269 - stats wasn't paying attention to run time settings as the strtotime arguments were the wrong way round. Thanks to Mark Nielsen --- diff --git a/admin/cron.php b/admin/cron.php index 4745b44469..21e6ca9405 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -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)