N°6495 - Fix strlen crashing with null value in AttributePassword

This commit is contained in:
Stephen Abello
2023-07-04 13:56:31 +02:00
parent 56688fbbff
commit 40dc3deabb

View File

@@ -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 '';
}