Permalink
Browse files

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

…essing
  • Loading branch information...
1 parent 042117e commit 74f350d4825451185068094912b0058f4c0152d9 martinlanghoff committed Feb 28, 2007
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/statslib.php
View
@@ -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;

0 comments on commit 74f350d

Please sign in to comment.