신고 불가 시 세션값을 FALSE > TRUE로 수정 필요

This commit is contained in:
BOBODDO 2021-10-08 23:42:37 +09:00 committed by GitHub
parent 10ab65e2f4
commit b611940adf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1565,7 +1565,7 @@ class commentController extends comment
// failed if both ip addresses between author's and the current user are same.
if($oComment->get('ipaddress') == \RX_CLIENT_IP && !$this->user->isAdmin())
{
$_SESSION['declared_comment'][$comment_srl] = TRUE;
$_SESSION['declared_comment'][$comment_srl] = FALSE;
return new BaseObject(-1, 'failed_declared');
}
@ -1578,7 +1578,7 @@ class commentController extends comment
// session registered if the author information matches to the current logged-in user's.
if($member_srl && $member_srl == abs($oComment->get('member_srl')))
{
$_SESSION['declared_comment'][$comment_srl] = TRUE;
$_SESSION['declared_comment'][$comment_srl] = FALSE;
return new BaseObject(-1, 'failed_declared');
}
}
@ -1597,7 +1597,7 @@ class commentController extends comment
$log_output = executeQuery('comment.getCommentDeclaredLogInfo', $args);
if($log_output->data->count)
{
$_SESSION['declared_comment'][$comment_srl] = TRUE;
$_SESSION['declared_comment'][$comment_srl] = FALSE;
return new BaseObject(-1, 'failed_declared');
}