From bb4bfe13df19e1e1c8f6daa8a347fbb7fc5f0bf7 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Mon, 19 Nov 2007 02:51:25 +0000 Subject: [PATCH] If the cache flag is not set, it doesn't make sense trying to test its value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Iñaki Arenaza Author: Iñaki Arenaza Committer: Martin Langhoff --- auth/ldap/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 55f35d90850..a1532456752 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];