LSsearch : Fix handling approx parameter

This commit is contained in:
Benjamin Renard 2020-02-18 12:35:08 +01:00
parent 9059629846
commit 103689d6ad

View file

@ -629,7 +629,7 @@ class LSsearch {
$filters=array();
foreach ($attrsList as $attr => $opts) {
if ($params['approx']) {
if ($this -> params['approx']) {
if (isset($opts['approxLSformat'])) {
$filter=Net_LDAP2_Filter::parse(getFData($opts['approxLSformat'],array('name'=>$attr,'pattern'=>$pattern)));
}