휴지통 삭제시 댓글수가 반영되지 않을 수 있는 문제 수정

댓글 삭제로 인해 댓글수가 0이 되었을 경우에도 반영되어야 함
This commit is contained in:
conory 2021-11-30 21:51:31 +09:00
parent 97f28141ae
commit 94918a070d

View file

@ -972,7 +972,7 @@ class commentController extends comment
// update the number of comments
$comment_count = CommentModel::getCommentCount($obj->document_srl);
// only document is exists
if(isset($comment_count))
if(is_int($comment_count))
{
// create the controller object of the document
$oDocumentController = getController('document');
@ -1016,7 +1016,7 @@ class commentController extends comment
// update the number of comments
$comment_count = CommentModel::getCommentCount($obj->document_srl);
// only document is exists
if(isset($comment_count))
if(is_int($comment_count))
{
// create the controller object of the document
$oDocumentController = getController('document');
@ -1149,7 +1149,7 @@ class commentController extends comment
$comment_count = CommentModel::getCommentCount($document_srl);
// only document is exists
if(isset($comment_count))
if(is_int($comment_count))
{
// create the controller object of the document
$oDocumentController = getController('document');
@ -1256,7 +1256,7 @@ class commentController extends comment
// update the number of comments
$comment_count = CommentModel::getCommentCount($oComment->document_srl);
if($comment_count)
if(is_int($comment_count))
{
$output = getController('document')->updateCommentCount($oComment->document_srl, $comment_count);
if(!$output->toBool())