mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-10990 1) fixed slow guest query with no mnethostid; merged from MOODLE_19_STABLE
This commit is contained in:
parent
56ca1c60de
commit
5699126226
@ -25,7 +25,7 @@
|
||||
}
|
||||
|
||||
/// Check if the guest user exists. If not, create one.
|
||||
if (! record_exists('user', 'username', 'guest')) {
|
||||
if (! record_exists('user', 'username', 'guest', 'mnethostid', $CFG->mnet_localhost_id)) {
|
||||
if (! $guest = create_guest_record()) {
|
||||
notify('Could not create guest user record !!!');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user