Fixed a small bug that prevented guest users from log in

See: http://moodle.org/bugs/bug.php?op=show&bugid=3989
Thx to [email protected]
This commit is contained in:
exe-cutor
2005-08-29 15:42:26 +00:00
parent ac310980e3
commit a50d860ef1
+1 -1
View File
@@ -4,7 +4,7 @@
require('../../config.php');
require('lib.php');
if (isloggedin()) { // Nothing to do
if (isloggedin() && $USER->username != 'guest') { // Nothing to do
redirect($CFG->wwwroot.'/index.php');
}