mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
휴지통 삭제시 댓글수가 반영되지 않을 수 있는 문제 수정
댓글 삭제로 인해 댓글수가 0이 되었을 경우에도 반영되어야 함
This commit is contained in:
parent
97f28141ae
commit
94918a070d
1 changed files with 4 additions and 4 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue