fixed search_units

This commit is contained in:
Roland Gruber 2003-06-28 09:07:20 +00:00
parent 733240f369
commit dca3c98ee6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}