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,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.')';
}