mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-29 21:24:51 +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;
|
$keyValues[] = $dn;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($object -> getValue($attrValue) as $keyValue)
|
$values=$object -> getValue($attrValue);
|
||||||
if (!in_array($keyValue,$keyValues)) $keyValues[]=$keyValue;
|
if (is_array($values))
|
||||||
|
foreach ($values as $keyValue)
|
||||||
|
if (!in_array($keyValue,$keyValues))
|
||||||
|
$keyValues[]=$keyValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $keyValues;
|
return $keyValues;
|
||||||
|
|
Loading…
Reference in a new issue