Hide malformed forms

[MAILPOET-3075]
This commit is contained in:
Pavel Dohnal
2020-08-12 13:18:05 +02:00
committed by Veljko V
parent 188f64e068
commit 3b2f437709

View File

@@ -188,7 +188,7 @@ class DisplayFormInWPContent {
$keys = self::SETUP[$formType];
$switchKey = $keys['switch'];
if (isset($settings[$switchKey]) && ($settings[$switchKey] !== '1')) {
if (!isset($settings[$switchKey]) || ($settings[$switchKey] !== '1')) {
// this form type display is disabled
return false;
}