diff --git a/admin/cron.php b/admin/cron.php index 485671a2919..ff19e6f33c3 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -274,7 +274,7 @@ unset($enrol); } - if (!empty($CFG->enablestats)) { + if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) { // check we're not before our runtime $timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today");