]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: use wrapper, not direct function call
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 6 Sep 2013 17:31:41 +0000 (19:31 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 27 Sep 2013 11:34:15 +0000 (13:34 +0200)
apps/user_ldap/lib/connection.php

index 6850169f2df5b11e9a34caa958f8479dfeb990b5..dd627a4e1b12375884eecf8a1aa9a312922f3297 100644 (file)
@@ -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;