From b9cd22cf7845e6192206c2f997123ba3a0bb098e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 6 Sep 2013 19:31:41 +0200 Subject: [PATCH] LDAP: use wrapper, not direct function call --- apps/user_ldap/lib/connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index 6850169f2d..dd627a4e1b 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;