summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorPhilW <roundcube@tehinterweb.co.uk>2013-08-26 12:23:58 +0100
committerPhilW <roundcube@tehinterweb.co.uk>2013-08-26 12:23:58 +0100
commit7ba5c27466a9f8f59eb1bc0d4d858e6ec6f38fb3 (patch)
tree96108d0a18f4c6c28bc9fb3a1ffd5436d5153f81 /program
parent62350ba021d479e459cbbf7957841fbb440b9846 (diff)
folder admin: omit fieldset if there is only one section
Diffstat (limited to 'program')
-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";