diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index eb3d5fa79..2c92bad9d 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -1361,12 +1361,14 @@ EOF; } $command = $attrib['command']; + $action = $command ?: $attrib['name']; if ($attrib['task']) { - $element = $command = $attrib['task'] . '.' . $command; + $command = $attrib['task'] . '.' . $command; + $element = $attrib['task'] . '.' . $action; } else { - $element = ($this->env['task'] ? $this->env['task'] . '.' : '') . $command; + $element = ($this->env['task'] ? $this->env['task'] . '.' : '') . $action; } if ($disabled_actions === null) { @@ -1374,7 +1376,7 @@ EOF; } // remove buttons for disabled actions - if (in_array($element, $disabled_actions)) { + if (in_array($element, $disabled_actions) || in_array($action, $disabled_actions)) { return ''; }