From 39ad9806afd3d5f589fe16d1e593809854f2f858 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 4 Mar 2003 07:19:56 +0000 Subject: [PATCH] return an empty array when searching the ldap directory unsuccessfully instead of false --- lib/authentication/LDAPAuthenticator.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authentication/LDAPAuthenticator.inc b/lib/authentication/LDAPAuthenticator.inc index db7a331..0bbcf81 100644 --- a/lib/authentication/LDAPAuthenticator.inc +++ b/lib/authentication/LDAPAuthenticator.inc @@ -98,7 +98,7 @@ class LDAPAuthenticator extends Authenticator { return $aUserResults; } else { // the search failed, return empty array - return false; + return array(); } } else { $_SESSION["errorMessage"] = "LDAP error: (" . $this->oLdap->ldapErrorCode . ") " . $this->oLdap->ldapErrorText; -- libgit2 0.21.4