Skip to content

Commit

Permalink
Fix: Web-form exclusion by ID fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 17, 2019
1 parent 7052200 commit 2c1d731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleantalk.antispam/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ function OnBeforeResultAddHandler($WEB_FORM_ID, &$arFields, &$arrVALUES)

$webforms_id_checking = CleantalkCustomConfig::get_webforms_ids();
if ($webforms_id_checking && is_array($webforms_id_checking) && count($webforms_id_checking) > 0)
if (!in_array($WEB_FORM_ID, $webforms_id_checking))
if (in_array($WEB_FORM_ID, $webforms_id_checking))
return;

if ($ct_status == 1 && $ct_webform == 1){
Expand Down

0 comments on commit 2c1d731

Please sign in to comment.