Commit 3e179763 authored by stronk7's avatar stronk7
Browse files

MDL-19350 upgrade blocks - fixing minor bits in modules

parent feb453e7
......@@ -83,7 +83,7 @@ function xmldb_chat_upgrade($oldversion) {
/// chat savepoint reached
upgrade_mod_savepoint($result, 2009042000, 'chat');
}
return $result;
}
......
......@@ -28,7 +28,7 @@ function xmldb_forum_upgrade($oldversion) {
//===== 1.9.0 upgrade line ======//
if ($result and $oldversion < 2007101511) {
if ($result && $oldversion < 2007101511) {
//MDL-13866 - send forum ratins to gradebook again
require_once($CFG->dirroot.'/mod/forum/lib.php');
forum_upgrade_grades();
......
......@@ -18,13 +18,13 @@ function xmldb_hotpot_upgrade($oldversion) {
// ensure "hotpot_upgrade_grades" function is available
require_once $CFG->dirroot.'/mod/hotpot/lib.php';
hotpot_upgrade_grades();
upgrade_mod_savepoint(true, 2007101511, 'hotpot');
upgrade_mod_savepoint($result, 2007101511, 'hotpot');
}
if ($result && $oldversion < 2008011200) {
// remove not used setting
unset_config('hotpot_initialdisable');
upgrade_mod_savepoint(true, 2008011200, 'hotpot');
upgrade_mod_savepoint($result, 2008011200, 'hotpot');
}
return $result;
......
......@@ -28,7 +28,7 @@ function xmldb_label_upgrade($oldversion) {
//===== 1.9.0 upgrade line ======//
if ($oldversion < 2007101510) {
if ($result && $oldversion < 2007101510) {
$sql = "UPDATE {log_display} SET mtable = 'label' WHERE module = 'label'";
$result = $DB->execute($sql);
upgrade_mod_savepoint($result, 2007101510, 'label');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment