Fix for broken guest shortcut

This commit is contained in:
fiedorow 2005-06-24 15:37:34 +00:00
parent bfff85cba1
commit 7d4beb9ed3

View File

@ -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");