Small upgrade to fix some guest->mnethostid. MDL-10375
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user