Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-7385 - stats_cron_daily() - If a module is missing, continue proc…

…essing
  • Loading branch information...
commit 3ce66e9f7b896d607114269e185e01536ada7c50 1 parent fb3501f
martinlanghoff authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/statslib.php
View
4 lib/statslib.php
@@ -81,7 +81,9 @@ function stats_cron_daily () {
$daily_modules = array();
$mods = get_records("modules");
foreach ($mods as $mod) {
- require_once($CFG->dirroot.'/mod/'.$mod->name.'/lib.php');
+ // include_once() will only warn if a mod is missing
+ // as we don't want processing to stop on such minutiae (MDL-7385)
+ include_once($CFG->dirroot.'/mod/'.$mod->name.'/lib.php');
$fname = $mod->name.'_get_daily_stats';
if (function_exists($fname)) {
$daily_modules[$mod] = $fname;
Please sign in to comment.
Something went wrong with that request. Please try again.