LSldapObject : change getDisplayName $spe parameter default value from empty string to null

This commit is contained in:
Benjamin Renard 2020-02-18 12:32:25 +01:00
parent c4687bdfdb
commit 69b7ce3f4f

View file

@ -144,10 +144,9 @@ class LSldapObject {
* *
* @retval string Valeur descriptive d'affichage de l'objet * @retval string Valeur descriptive d'affichage de l'objet
*/ */
public function getDisplayName($spe='',$full=false) { public function getDisplayName($spe=null, $full=false) {
if ($spe=='') { if (is_null($spe))
$spe = $this -> getDisplayNameFormat(); $spe = $this -> getDisplayNameFormat();
}
$val = $this -> getFData($spe, $this -> attrs, 'getDisplayValue'); $val = $this -> getFData($spe, $this -> attrs, 'getDisplayValue');
if (LSsession :: haveSubDn() && $full) { if (LSsession :: haveSubDn() && $full) {
$val.=' ('.$this -> subDnName.')'; $val.=' ('.$this -> subDnName.')';