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:
martinlanghoff
2007-11-19 02:51:25 +00:00
parent c124578f93
commit bb4bfe13df
+1 -1
View File
@@ -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];