Commit 39ad9806afd3d5f589fe16d1e593809854f2f858

Authored by michael
1 parent 5939c0a2

return an empty array when searching the ldap directory unsuccessfully instead of false


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1298 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/authentication/LDAPAuthenticator.inc
@@ -98,7 +98,7 @@ class LDAPAuthenticator extends Authenticator { @@ -98,7 +98,7 @@ class LDAPAuthenticator extends Authenticator {
98 return $aUserResults; 98 return $aUserResults;
99 } else { 99 } else {
100 // the search failed, return empty array 100 // the search failed, return empty array
101 - return false; 101 + return array();
102 } 102 }
103 } else { 103 } else {
104 $_SESSION["errorMessage"] = "LDAP error: (" . $this->oLdap->ldapErrorCode . ") " . $this->oLdap->ldapErrorText; 104 $_SESSION["errorMessage"] = "LDAP error: (" . $this->oLdap->ldapErrorCode . ") " . $this->oLdap->ldapErrorText;