fixed bug in search_units, suffix is now search case-intensitive
This commit is contained in:
parent
3f6792329d
commit
a24b3913fb
|
@ -144,7 +144,14 @@ class Ldap{
|
|||
}
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
return $ret;
|
||||
|
|
Loading…
Reference in New Issue