mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
insertComment($manual_inserted = true) 일 경우 오류 수정
This commit is contained in:
parent
f94c51ab41
commit
2b183435c8
1 changed files with 2 additions and 4 deletions
|
|
@ -544,14 +544,12 @@ class commentController extends comment
|
|||
return $output;
|
||||
}
|
||||
|
||||
// get the number of all comments in the posting
|
||||
$comment_count = $oCommentModel->getCommentCount($document_srl);
|
||||
|
||||
// create the controller object of the document
|
||||
$oDocumentController = getController('document');
|
||||
|
||||
// Update the number of comments in the post
|
||||
if(!$using_validation || $is_admin)
|
||||
$comment_count = $oCommentModel->getCommentCount($document_srl);
|
||||
if($comment_count && (!$using_validation || $is_admin))
|
||||
{
|
||||
$output = $oDocumentController->updateCommentCount($document_srl, $comment_count, $obj->nick_name, $update_document);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue