Permalink
Browse files

MDL-26469 upgrade: cope with modules that do not set $module->cron.

  • Loading branch information...
1 parent e40a76f commit 95371a3bcc272520abc09cd99318b12fd630d189 @timhunt timhunt committed with stronk7 Jan 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/upgradelib.php
View
4 lib/upgradelib.php
@@ -472,6 +472,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.');

0 comments on commit 95371a3

Please sign in to comment.