mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-01 00:03:18 +01:00
LSldapObject : fix foreach error in getObjectKeyValueInRelation() if attribute is empty
This commit is contained in:
parent
7970489489
commit
bf5fcf3244
1 changed files with 5 additions and 2 deletions
|
@ -1327,8 +1327,11 @@ class LSldapObject {
|
|||
$keyValues[] = $dn;
|
||||
}
|
||||
else {
|
||||
foreach ($object -> getValue($attrValue) as $keyValue)
|
||||
if (!in_array($keyValue,$keyValues)) $keyValues[]=$keyValue;
|
||||
$values=$object -> getValue($attrValue);
|
||||
if (is_array($values))
|
||||
foreach ($values as $keyValue)
|
||||
if (!in_array($keyValue,$keyValues))
|
||||
$keyValues[]=$keyValue;
|
||||
}
|
||||
}
|
||||
return $keyValues;
|
||||
|
|
Loading…
Reference in a new issue