Skip to content

Commit 0c875bc

Browse files
committed
Fix. Honeypot. Search form handling fixed.
1 parent 163d121 commit 0c875bc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/Cleantalk/ApbctWP/Honeypot.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ private static function getHoneypotFilledFields()
117117

118118
// AltSessions way to collect search forms honeypot
119119
if ( $apbct->settings['forms__search_test'] ) {
120-
$honeypot_potential_values['apbct__email_id__search_form'] = AltSessions::get("apbct_search_form__honeypot_value");
120+
$alt_session_data = AltSessions::get("apbct_search_form__honeypot_value");
121+
if (!empty($alt_session_data)) {
122+
$honeypot_potential_values['apbct__email_id__search_form'] = $alt_session_data;
123+
$hp_exists = true;
124+
}
121125
}
122126

123127
// if source is filled then pass them to params as additional fields

0 commit comments

Comments
 (0)