Small upgrade to fix some guest->mnethostid. MDL-10375

This commit is contained in:
stronk7
2007-07-06 17:43:33 +00:00
parent 62f3bee984
commit 305726a6a2
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -692,6 +692,11 @@ function xmldb_main_upgrade($oldversion=0) {
}
}
if ($result && $oldversion < 2007021511) {
// Small update of guest user to be 100% sure it has the correct mnethostid (MDL-10375)
set_field('user', 'mnethostid', $CFG->mnet_localhost_id, 'username', 'guest');
}
return $result;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2007021510; // YYYYMMDD = date of the 1.8 branch (don't change)
$version = 2007021511; // YYYYMMDD = date of the 1.8 branch (don't change)
// X = release number 1.8.[0,1,2,3...]
// Y = micro-increments between releases