diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 41f2c808e..56fef3cee 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -1590,12 +1590,14 @@ EOF; } // overwrite attributes - if (!$attrib['href']) { + if (!$attrib['href'] && !$menuitem) { $attrib['href'] = '#'; } + if ($attrib['task']) { - if ($attrib['classact']) + if ($attrib['classact']) { $attrib['class'] = $attrib['classact']; + } } else if ($command && !$attrib['onclick']) { $attrib['onclick'] = sprintf(