diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2014-12-18 09:29:47 (GMT) |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2014-12-18 09:29:47 (GMT) |
commit | c2cc70eec3ebbdb36d62f5cba64148ea06647673 (patch) | |
tree | 9b727c1d9e727caf104eff7f96d324eff04fc4fd | |
parent | 47bb5a2b17f2cbbd8baab60d8f2d86dedc16d5a7 (diff) | |
download | Net_LDAP3-c2cc70eec3ebbdb36d62f5cba64148ea06647673.tar.gz |
Set $ns_function before it is going to be used, not after - error when using numsub_filter
-rw-r--r-- | lib/Net/LDAP3.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Net/LDAP3.php b/lib/Net/LDAP3.php index 48e4f07..d910c0d 100644 --- a/lib/Net/LDAP3.php +++ b/lib/Net/LDAP3.php @@ -1559,6 +1559,8 @@ class Net_LDAP3 $attrs = array('dn'); } + $function = self::scope_to_function($scope, $ns_function); + if (!$count_only && ($sort = $this->find_vlv($base_dn, $filter, $scope, $props['sort']))) { // when using VLV, we get the total count by... // ...either reading numSubOrdinates attribute @@ -1583,7 +1585,6 @@ class Net_LDAP3 $this->vlv_active = false; } - $function = self::scope_to_function($scope, $ns_function); $sizelimit = (int) $this->config['sizelimit']; $timelimit = (int) $this->config['timelimit']; $phplimit = (int) @ini_get('max_execution_time'); |