Skip to content

Commit 606f781

Browse files
author
davydov
committed
fix jcomments check
1 parent aa41f5f commit 606f781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

antispambycleantalk.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ public function onValidateContact(&$contact, &$data) {
10791079
'sender_nickname' => $data[$user_name_key],
10801080
'sender_email' => $data[$user_email_key],
10811081
'message' => $data[$subject_key] . "\n " . $data[$message_key],
1082-
'post_info' => json_encode($post_info),
1082+
'post_info' => $post_info,
10831083
)
10841084
);
10851085
if ($ctResponse)
@@ -1222,7 +1222,7 @@ public function onJCommentsCommentBeforeAdd(&$comment) {
12221222
'message' =>preg_replace('/\s+/', ' ',str_replace("<br />", " ", $comment->comment)),
12231223
'sender_nickname' => $comment->name,
12241224
'sender_email' => $comment->email,
1225-
'post_info' => json_encode($post_info),
1225+
'post_info' => $post_info,
12261226
)
12271227
);
12281228
if ($ctResponse)

0 commit comments

Comments
 (0)