From 796f14571bfd0da903608d7de3b950bd9cbeed7c Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 4 May 2024 20:23:29 +0900 Subject: [PATCH] Fix #2340 null warning in comment.item.php --- modules/comment/comment.item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/comment/comment.item.php b/modules/comment/comment.item.php index 5a2d8546b..3be2d3244 100644 --- a/modules/comment/comment.item.php +++ b/modules/comment/comment.item.php @@ -393,8 +393,7 @@ class CommentItem extends BaseObject } $args->comment_srl = $this->comment_srl; $output = executeQuery('comment.getCommentVotedLog', $args); - - if($output->data->point) + if(isset($output->data) && $output->data->point) { return $_SESSION['voted_comment'][$this->comment_srl] = $output->data->point; }