Restore the captcha page in Populator [MAILPOET-2242]

This commit is contained in:
wxa
2019-07-31 20:10:28 +03:00
committed by M. Shull
parent 2149bf386d
commit 82661248f3

View File

@ -190,7 +190,7 @@ class Populator {
'confirmation' => $mailpoet_page_id,
'captcha' => $mailpoet_page_id,
]);
} elseif (empty($subscription['captcha'])) {
} elseif (empty($subscription['captcha']) || $subscription['captcha'] !== $mailpoet_page_id) {
// For existing installations
$this->settings->set('subscription.pages', array_merge($subscription, ['captcha' => $mailpoet_page_id]));
}