Skip to content
Permalink
Browse files

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

…essing
  • Loading branch information...
martinlanghoff
martinlanghoff committed Feb 28, 2007
1 parent b0ae387 commit 0f467340a64acd1beeb6cc18e3c1f723194e7412
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;

0 comments on commit 0f46734

Please sign in to comment.
You can’t perform that action at this time.