From 6770babe147179ce3aa3a6246045ff600610b490 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 8 Oct 2021 14:32:56 +0200 Subject: [PATCH] LSldapObject::getValue(): ensure return is array in case of attribute --- src/includes/class/class.LSldapObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/class/class.LSldapObject.php b/src/includes/class/class.LSldapObject.php index 43612025..6296fafd 100644 --- a/src/includes/class/class.LSldapObject.php +++ b/src/includes/class/class.LSldapObject.php @@ -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];