From 2787bf525fabaf01ffaf5346ff6f2dcc9573e725 Mon Sep 17 00:00:00 2001 From: Thomas Skerbis Date: Mon, 24 Jan 2022 13:44:54 +0100 Subject: [PATCH] Update spam_protection.php --- lib/yform/value/spam_protection.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/yform/value/spam_protection.php b/lib/yform/value/spam_protection.php index f90ce79..7dee282 100644 --- a/lib/yform/value/spam_protection.php +++ b/lib/yform/value/spam_protection.php @@ -21,9 +21,8 @@ public function postValidateAction(): void $ip_whitelist = explode(',', $config_ip_whitelist); } - if ($debug) { - rex_sql::factory()->setDebug($debug)->setQuery("DELETE FROM rex_tmp_yform_spam_protection_frequency WHERE createdate < (NOW() - INTERVAL ".rex_config::get('yform_spam_protection', 'ip_block_timer')." SECOND)"); - } + rex_sql::factory()->setDebug($debug)->setQuery("DELETE FROM rex_tmp_yform_spam_protection_frequency WHERE createdate < (NOW() - INTERVAL ".rex_config::get('yform_spam_protection', 'ip_block_timer')." SECOND)"); + $log = [];