mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
N°6495 - Fix strlen crashing with null value in AttributePassword
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user