LSldapObject::getValue(): ensure return is array in case of attribute

This commit is contained in:
Benjamin Renard 2021-10-08 14:32:56 +02:00
parent 5e500d5cde
commit 6770babe14

View file

@ -971,7 +971,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
}
else if(isset($this -> attrs[$val])){
if (method_exists($this -> attrs[$val],'getValue'))
$return = $this -> attrs[$val] -> getValue();
$return = ensureIsArray($this -> attrs[$val] -> getValue());
}
else if(isset($this -> other_values[$val])){
$return = $this -> other_values[$val];