fixed search_units
This commit is contained in:
parent
733240f369
commit
dca3c98ee6
|
@ -145,7 +145,8 @@ class Ldap{
|
|||
}
|
||||
// add root suffix if needed
|
||||
if (!in_array($suffix, $units)) {
|
||||
array_push($units, $suffix);
|
||||
if (sizeof($units) > 0) array_push($units, $suffix);
|
||||
else $units[0] = $suffix;
|
||||
}
|
||||
return $units;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue