From: martinlanghoff Date: Mon, 19 Nov 2007 02:43:34 +0000 (+0000) Subject: If the cache flag is not set, it doesn't make sense trying to test its value X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=58eada356d9fdeee54ed4f3517b6b09df1ab5b45;p=moodle.git If the cache flag is not set, it doesn't make sense trying to test its value Signed-off-by: Iñaki Arenaza Author: Iñaki Arenaza Committer: Martin Langhoff --- diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 55f35d9085..a153245675 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -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];