diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-05 13:47:03 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-05 13:47:03 +0100 |
commit | b08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3 (patch) | |
tree | ac18cc5a11eba1a12ac8923bfaf9c9ffbc716436 /apps/user_ldap | |
parent | 2b7ff7273d0c791a3b7eabe90146915f063a8339 (diff) | |
download | nextcloud-server-b08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3.tar.gz nextcloud-server-b08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3.zip |
LDAP: error codes can be negative, too
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 05249b8f163..d409591283c 100644 --- a/apps/user_ldap/lib/access.php +++ b/apps/user_ldap/lib/access.php @@ -650,7 +650,7 @@ abstract class Access { $linkResources = array_pad(array(), count($base), $link_resource); $sr = ldap_search($linkResources, $base, $filter, $attr); $error = ldap_errno($link_resource); - if(!is_array($sr) || $error > 0) { + if(!is_array($sr) || $error != 0) { \OCP\Util::writeLog('user_ldap', 'Error when searching: '.ldap_error($link_resource).' code '.ldap_errno($link_resource), \OCP\Util::ERROR); |