DOn't process stats if it's blocked

This commit is contained in:
moodler
2006-09-03 15:44:25 +00:00
parent f598a45f2e
commit 5decc6f064
+1 -1
View File
@@ -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");