diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index 28edd2e98..777362c5d 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -1221,6 +1221,17 @@ EOF;
return $hook['content'];
+ // return element
+ case 'link':
+ if ($attrib['condition'] && !$this->check_condition($attrib['condition'])) {
+ break;
+ }
+
+ unset($attrib['condition']);
+
+ return html::tag('link', $attrib);
+
+
// return code for a specified eval expression
case 'exp':
return html::quote($this->eval_expression($attrib['expression']));