Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f7f5109386a3c07be12112447c3a9ef95e86fcad 1 parent 71092fe
poltawski authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/cron.php
View
2  admin/cron.php
@@ -281,7 +281,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)
Please sign in to comment.
Something went wrong with that request. Please try again.