If the cache flag is not set, it doesn't make sense trying to test its value
Signed-off-by: Iñaki Arenaza <[email protected]> Author: Iñaki Arenaza <[email protected]> Committer: Martin Langhoff <[email protected]>
This commit is contained in:
+1
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user