mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Don't try and set cookies here .... can cause errors (see bug 2941)
This commit is contained in:
parent
89286e242d
commit
e3eae97b07
@ -42,10 +42,6 @@ class block_login extends block_base {
|
||||
$signup = '';
|
||||
}
|
||||
|
||||
if (get_moodle_cookie() == '') {
|
||||
set_moodle_cookie('nobody'); // To help search for cookies
|
||||
}
|
||||
|
||||
$username = get_moodle_cookie() === 'nobody' ? '' : get_moodle_cookie();
|
||||
|
||||
if (empty($USER->loggedin)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user