summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 2002a62fc..59dfa299e 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -467,7 +467,7 @@ class rcube_template extends rcube_html_page
switch ($command) {
// return a button
case 'button':
- if ($attrib['command']) {
+ if ($attrib['name'] || $attrib['command']) {
return $this->button($attrib);
}
break;