Skip to content

Commit

Permalink
Fix. Params. Added submit_time filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
svfcode authored Feb 20, 2025
1 parent fc49e82 commit e359541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CleantalkAntispam.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function handle()
$ct_request->sender_ip = $sender_ip;
$ct_request->sender_nickname = $sender_nickname;
$ct_request->message = $message;
$ct_request->submit_time = $_SESSION['ct_submit_time'];
$ct_request->submit_time = isset($_SESSION['ct_submit_time']) ? $_SESSION['ct_submit_time'] : null;
$ct_request->event_token = isset($_POST['ct_bot_detector_event_token']) ? $_POST['ct_bot_detector_event_token'] : null;

$ct = new Cleantalk();
Expand Down

0 comments on commit e359541

Please sign in to comment.