diff --git a/sources/application/UI/Base/Component/Input/InputWithLabel.php b/sources/application/UI/Base/Component/Input/InputWithLabel.php index 9802a0744..933315681 100644 --- a/sources/application/UI/Base/Component/Input/InputWithLabel.php +++ b/sources/application/UI/Base/Component/Input/InputWithLabel.php @@ -25,7 +25,8 @@ class InputWithLabel extends UIBlock protected $oInput; /** @var bool Label before input ? */ protected $bBeforeInput; - /**@var string $sDescription for tooltip + /** + * @var string $sDescription for tooltip * @since 3.0.1 */ protected $sDescription; @@ -131,7 +132,7 @@ class InputWithLabel extends UIBlock */ public function HasDescription(): bool { - return $this->sDescription != null; + return strlen($this->sDescription) > 0; } } \ No newline at end of file diff --git a/sources/application/UI/Base/Component/Input/tInputLabel.php b/sources/application/UI/Base/Component/Input/tInputLabel.php index a41361cec..0038ff89c 100644 --- a/sources/application/UI/Base/Component/Input/tInputLabel.php +++ b/sources/application/UI/Base/Component/Input/tInputLabel.php @@ -18,8 +18,9 @@ trait tInputLabel protected $bIsLabelBefore = true; /** @var string|null Label to display with the input (null for no label) */ protected $sLabel = null; - /**@var string $sDescription for tooltip - * @since 3.0.1 + /** + * @var string $sDescription for tooltip + * @since 3.0.1 */ protected $sDescription;