Permalink
Browse files

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

…strtotime

arguments were the wrong way round. Thanks to Mark Nielsen
backported from MOODLE_19_STABLE
  • Loading branch information...
1 parent 3b798d4 commit e4cfa6545082a4638395a5cfbf0ab71b7ffc6098 poltawski committed Jan 13, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/cron.php
View
@@ -311,7 +311,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)

0 comments on commit e4cfa65

Please sign in to comment.