Skip to content
Snippets Groups Projects
Commit c2cc70ee authored by Aleksander Machniak's avatar Aleksander Machniak
Browse files

Set $ns_function before it is going to be used, not after - error when using numsub_filter

parent 47bb5a2b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment