fixed bug in search_units, suffix is now search case-intensitive

This commit is contained in:
Roland Gruber 2003-06-30 19:50:42 +00:00
parent 3f6792329d
commit a24b3913fb
1 changed files with 8 additions and 1 deletions

View File

@ -144,7 +144,14 @@ class Ldap{
} }
} }
// add root suffix if needed // add root suffix if needed
if (!in_array($suffix, $ret)) { $found == false;
for ($i = 0; $i < sizeof($ret); $i++) { // search suffix case-intensitive
if (strtolower($suffix) == strtolower($ret[$i])) {
$found = true;
break;
}
}
if (!$found) {
$ret[] = $suffix; $ret[] = $suffix;
} }
return $ret; return $ret;