mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSldapObject : change getDisplayName $spe parameter default value from empty string to null
This commit is contained in:
parent
c4687bdfdb
commit
69b7ce3f4f
1 changed files with 3 additions and 4 deletions
|
@ -144,11 +144,10 @@ 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.')';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue