From 569912622616dfaa5f001e1f5aaf3f33e30b6591 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 26 Feb 2008 20:01:07 +0000 Subject: [PATCH] MDL-10990 1) fixed slow guest query with no mnethostid; merged from MOODLE_19_STABLE --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 !!!'); } -- 2.39.5