mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 17:14:20 +01:00
Do not create a "mailto" hyperlink for empty email addresses.
SVN:trunk[927]
This commit is contained in:
@@ -1091,6 +1091,7 @@ class AttributeEmailAddress extends AttributeString
|
||||
|
||||
public function GetAsHTML($sValue)
|
||||
{
|
||||
if (empty($sValue)) return '';
|
||||
return '<a class="mailto" href="mailto:'.$sValue.'">'.parent::GetAsHTML($sValue).'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user