git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4226 a333f486-631f-4898-b8df-5754b55c2be0
@@ -2499,7 +2499,10 @@ class AttributeText extends AttributeString
switch ($this->GetFormat())
{
case 'html':
- $sValue = HTMLSanitizer::Sanitize($sValue);
+ if (($sValue !== null) && ($sValue !== ''))
+ {
+ $sValue = HTMLSanitizer::Sanitize($sValue);
+ }
break;
case 'text':