From ff05bb31664fc60db14dafd62195ad4ca9291556 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 11 Jan 2012 15:42:23 +0000 Subject: [PATCH] MDL-26469 upgrade: cope with modules that do not set $module->cron. --- lib/upgradelib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/upgradelib.php b/lib/upgradelib.php index bf8829f8188..b2db2b8be6f 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -465,6 +465,10 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) { } } + if (empty($module->cron)) { + $module->cron = 0; + } + // all modules must have en lang pack if (!is_readable("$fullmod/lang/en/$mod.php")) { throw new plugin_defective_exception($component, 'Missing mandatory en language pack.'); -- 2.43.0