Skip empty blocks in contact form

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

@ -666,7 +666,9 @@ function rcmail_contact_form($form, $record, $attrib = null)
}
}
$content .= html::div($block_attr, $fields);
if ($fields) {
$content .= html::div($block_attr, $fields);
}
}
if ($edit_mode) {

Loading…
Cancel
Save