diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 9fe7fe019..88c0faf7c 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -4188,7 +4188,7 @@ class AttributePassword extends AttributeString implements iAttributeNoGroupBy public function GetAsHTML($sValue, $oHostObject = null, $bLocalize = true) { - if (strlen($sValue) == 0) + if (utils::IsNullOrEmptyString($sValue)) { return ''; }