Skip to content

Commit e359541

Browse files
authored
Fix. Params. Added submit_time filter.
1 parent fc49e82 commit e359541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CleantalkAntispam.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function handle()
4949
$ct_request->sender_ip = $sender_ip;
5050
$ct_request->sender_nickname = $sender_nickname;
5151
$ct_request->message = $message;
52-
$ct_request->submit_time = $_SESSION['ct_submit_time'];
52+
$ct_request->submit_time = isset($_SESSION['ct_submit_time']) ? $_SESSION['ct_submit_time'] : null;
5353
$ct_request->event_token = isset($_POST['ct_bot_detector_event_token']) ? $_POST['ct_bot_detector_event_token'] : null;
5454

5555
$ct = new Cleantalk();

0 commit comments

Comments
 (0)