summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-06 19:31:41 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-09-27 13:34:15 +0200
commitb9cd22cf7845e6192206c2f997123ba3a0bb098e (patch)
treefaf4b9302b244b7c1888e2c62ce496e202c65c46 /apps/user_ldap
parent5090ca3eb472b4d6b14aa6d7034cb6fc6f688649 (diff)
downloadnextcloud-server-b9cd22cf7845e6192206c2f997123ba3a0bb098e.tar.gz
nextcloud-server-b9cd22cf7845e6192206c2f997123ba3a0bb098e.zip
LDAP: use wrapper, not direct function call
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 6850169f2df..dd627a4e1b1 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -625,7 +625,7 @@ class Connection extends BackendBase {
if(!$this->config['ldapOverrideMainServer'] && !$this->getFromCache('overrideMainServer')) {
$this->doConnect($this->config['ldapHost'], $this->config['ldapPort']);
$bindStatus = $this->bind();
- $error = $this->ldap->isResource($this->ldapConnectionRes) ? ldap_errno($this->ldapConnectionRes) : -1;
+ $error = $this->ldap->isResource($this->ldapConnectionRes) ? $this->ldap->errno($this->ldapConnectionRes) : -1;
} else {
$bindStatus = false;
$error = null;