From 8d39ddded6288e26e4e7a81664ea7dd05c2b0507 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 25 Oct 2010 14:27:48 +0000 Subject: [PATCH] Do not create a "mailto" hyperlink for empty email addresses. SVN:trunk[927] --- core/attributedef.class.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 840005329..f4db96c3f 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1091,6 +1091,7 @@ class AttributeEmailAddress extends AttributeString public function GetAsHTML($sValue) { + if (empty($sValue)) return ''; return ''.parent::GetAsHTML($sValue).''; } }