From 7d4beb9ed3a41ee525c99fd0f04a8d7e4348cdd0 Mon Sep 17 00:00:00 2001 From: fiedorow Date: Fri, 24 Jun 2005 15:37:34 +0000 Subject: [PATCH] Fix for broken guest shortcut --- login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/index.php b/login/index.php index ffa03e15cab..70e8df287fd 100644 --- a/login/index.php +++ b/login/index.php @@ -85,7 +85,7 @@ /// Check if the user has actually submitted login data to us - if ($frm and (get_moodle_cookie() == '')) { // Login without cookie + if ($frm and (get_moodle_cookie() == '') and ($frm->username!='guest') and !$user) { // Login without cookie $errormsg = get_string("cookiesnotenabled");