diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-09-01 05:04:27 -0700 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-09-01 05:04:27 -0700 |
commit | 7ccb59499b5d8256c5038dc75ec3538e00c059b0 (patch) | |
tree | ee263b25426e120464db4f7cd6326e01da2e494c /program/steps/settings | |
parent | 8edaa157954f0fa41d24dc16c197b82be8df068f (diff) | |
parent | 7ba5c27466a9f8f59eb1bc0d4d858e6ec6f38fb3 (diff) |
Merge pull request #106 from JohnDoh/edit-folders
folder admin: omit fieldset if there is only one section
Diffstat (limited to 'program/steps/settings')
-rw-r--r-- | program/steps/settings/edit_folder.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/settings/edit_folder.inc b/program/steps/settings/edit_folder.inc index fdb38e602..f19e2177b 100644 --- a/program/steps/settings/edit_folder.inc +++ b/program/steps/settings/edit_folder.inc @@ -264,9 +264,12 @@ function rcmail_folder_form($attrib) $content = rcmail_get_form_part($tab, $attrib); } - if ($content) { + if ($content && sizeof($form) > 1) { $out .= html::tag('fieldset', null, html::tag('legend', null, Q($tab['name'])) . $content) ."\n"; } + else { + $out .= $content ."\n"; + } } $out .= "\n$form_end"; |