mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
If the cache flag is not set, it doesn't make sense trying to test its value
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu> Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu> Committer: Martin Langhoff <martin@catalyst.net.nz>
This commit is contained in:
parent
a44240fa89
commit
58eada356d
@ -1827,7 +1827,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
|
||||
$key = sesskey();
|
||||
$cf = get_cache_flags('auth/ldap/ntlmsess');
|
||||
if (!isset($cf[$key]) && $cf[$key] !== '') {
|
||||
if (!isset($cf[$key]) || $cf[$key] === '') {
|
||||
return false;
|
||||
}
|
||||
$username = $cf[$key];
|
||||
|
Loading…
x
Reference in New Issue
Block a user