summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-13 07:35:58 +0000
committeralecpl <alec@alec.pl>2008-04-13 07:35:58 +0000
commit875a482d3c47218b8d191bb07fdb16373a80b1d4 (patch)
tree01daeb8f4d1cd7a84272c7340a022d83ea3ea3c0
parent3d35312cc4badb64a2c26db8e80c1a01f2d1c12b (diff)
- fix for buttons without commands (r1291)
-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;