From ff2ede7c36ca7b14bdbe2e489a895aa36fd3d4af Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 1 May 2020 13:25:00 +0200 Subject: [PATCH] LScli :: show : show attribute label and name --- public_html/includes/class/class.LSldapObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSldapObject.php b/public_html/includes/class/class.LSldapObject.php index b413bde5..181be881 100644 --- a/public_html/includes/class/class.LSldapObject.php +++ b/public_html/includes/class/class.LSldapObject.php @@ -1956,7 +1956,7 @@ class LSldapObject { public function _cli_show_attr($attr_name, $raw_values=false, $prefix="") { if (!isset($this -> attrs[$attr_name])) return; - echo "$prefix - $attr_name :"; + echo "$prefix - ".$this -> attrs[$attr_name]->getLabel()." ($attr_name) :"; $values = ($raw_values?$this -> attrs[$attr_name]->getValue():$this -> attrs[$attr_name]->getDisplayValue()); if (empty($values)) { echo " empty\n";