Skip empty blocks in contact form

pull/6060/head
Aleksander Machniak 7 years ago
parent 196ce5d251
commit 6dbdf9dedd

@ -666,8 +666,10 @@ function rcmail_contact_form($form, $record, $attrib = null)
} }
} }
if ($fields) {
$content .= html::div($block_attr, $fields); $content .= html::div($block_attr, $fields);
} }
}
if ($edit_mode) { if ($edit_mode) {
$content .= html::p('addfield', $select_add->show(null)); $content .= html::p('addfield', $select_add->show(null));

Loading…
Cancel
Save