Merge pull request #106 from JohnDoh/edit-folders

folder admin: omit fieldset if there is only one section
pull/92/merge
Aleksander Machniak 11 years ago
commit 7ccb59499b

@ -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";

Loading…
Cancel
Save