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:
martinlanghoff 2007-11-19 02:43:34 +00:00
parent a44240fa89
commit 58eada356d

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];