diff --git a/cleantalk.antispam/include.php b/cleantalk.antispam/include.php index 2e811f2..de13de0 100644 --- a/cleantalk.antispam/include.php +++ b/cleantalk.antispam/include.php @@ -1315,6 +1315,9 @@ static function CheckAllBefore(&$arEntity, $bSendEmail = FALSE, $form_errors = n )); return; } + if (isset($arEntity['sender_email']) && empty($arEntity['sender_email']) && COption::GetOptionInt('cleantalk.antispam', 'form_global_check_without_email', 0) != 1) { + return; + } $cleantalk_site_exclusions = COption::GetOptionString('cleantalk.antispam', 'site_exclusions', ''); if (!empty($cleantalk_site_exclusions)) {