mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02: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)
|
public function GetAsHTML($sValue)
|
||||||
{
|
{
|
||||||
|
if (empty($sValue)) return '';
|
||||||
return '<a class="mailto" href="mailto:'.$sValue.'">'.parent::GetAsHTML($sValue).'</a>';
|
return '<a class="mailto" href="mailto:'.$sValue.'">'.parent::GetAsHTML($sValue).'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user