summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-01 05:04:27 -0700
committerAleksander Machniak <alec@alec.pl>2013-09-01 05:04:27 -0700
commit7ccb59499b5d8256c5038dc75ec3538e00c059b0 (patch)
treeee263b25426e120464db4f7cd6326e01da2e494c /program/steps
parent8edaa157954f0fa41d24dc16c197b82be8df068f (diff)
parent7ba5c27466a9f8f59eb1bc0d4d858e6ec6f38fb3 (diff)
Merge pull request #106 from JohnDoh/edit-folders
folder admin: omit fieldset if there is only one section
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/edit_folder.inc5
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";