Prevent warnings for user when upgrading to mnet MDL-8082

This commit is contained in:
moodler
2007-01-05 08:51:14 +00:00
parent 3c76e67145
commit 8a45fcdfda
+5 -1
View File
@@ -19,7 +19,7 @@
function xmldb_main_upgrade($oldversion=0) {
global $CFG, $THEME, $db;
global $CFG, $THEME, $USER, $db;
$result = true;
@@ -385,6 +385,10 @@ function xmldb_main_upgrade($oldversion=0) {
// Create the table
$result = $result && create_table($table);
if (empty($USER->mnet_host_id)) {
$USER->mnet_host_id = 1; // Something for the current user to prevent warnings
}
/**
** enrol/mnet tables
**/