Fix #2340 null warning in comment.item.php

This commit is contained in:
Kijin Sung 2024-05-04 20:23:29 +09:00
parent 684b86a636
commit 796f14571b

View file

@ -393,8 +393,7 @@ class CommentItem extends BaseObject
} }
$args->comment_srl = $this->comment_srl; $args->comment_srl = $this->comment_srl;
$output = executeQuery('comment.getCommentVotedLog', $args); $output = executeQuery('comment.getCommentVotedLog', $args);
if(isset($output->data) && $output->data->point)
if($output->data->point)
{ {
return $_SESSION['voted_comment'][$this->comment_srl] = $output->data->point; return $_SESSION['voted_comment'][$this->comment_srl] = $output->data->point;
} }