From 69b7ce3f4f0f4d5a9820566ba5022a4d2e3b711b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 18 Feb 2020 12:32:25 +0100 Subject: [PATCH] LSldapObject : change getDisplayName $spe parameter default value from empty string to null --- public_html/includes/class/class.LSldapObject.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php index b71c709d..b66401a7 100644 --- a/public_html/includes/class/class.LSldapObject.php +++ b/public_html/includes/class/class.LSldapObject.php @@ -144,11 +144,10 @@ class LSldapObject { * * @retval string Valeur descriptive d'affichage de l'objet */ - public function getDisplayName($spe='',$full=false) { - if ($spe=='') { + public function getDisplayName($spe=null, $full=false) { + if (is_null($spe)) $spe = $this -> getDisplayNameFormat(); - } - $val = $this -> getFData($spe,$this -> attrs,'getDisplayValue'); + $val = $this -> getFData($spe, $this -> attrs, 'getDisplayValue'); if (LSsession :: haveSubDn() && $full) { $val.=' ('.$this -> subDnName.')'; }