From: skodak Date: Tue, 26 Feb 2008 20:01:07 +0000 (+0000) Subject: MDL-10990 1) fixed slow guest query with no mnethostid; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=569912622616dfaa5f001e1f5aaf3f33e30b6591;p=moodle.git MDL-10990 1) fixed slow guest query with no mnethostid; merged from MOODLE_19_STABLE --- diff --git a/login/index.php b/login/index.php index 82b125e840..e8b24cb573 100644 --- a/login/index.php +++ b/login/index.php @@ -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 !!!'); }