MDL-10990 1) fixed slow guest query with no mnethostid; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-02-26 20:01:07 +00:00
parent 56ca1c60de
commit 5699126226

View File

@ -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 !!!');
}