mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
이미 신고된 글에 대해 신고회수를 증가시키는 부분의 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3996 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e587e86b90
commit
1d6f0b995a
1 changed files with 2 additions and 1 deletions
|
|
@ -426,6 +426,7 @@
|
|||
$args->document_srl = $document_srl;
|
||||
$output = executeQuery('document.getDeclaredDocument', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
$declared_count = $output->data->declared_count;
|
||||
|
||||
// 문서 원본을 가져옴
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
|
@ -466,7 +467,7 @@
|
|||
}
|
||||
|
||||
// 신고글 추가
|
||||
if($output->data->declared_count > 0) $output = executeQuery('document.updateDeclaredDocument', $args);
|
||||
if($declared_count > 0) $output = executeQuery('document.updateDeclaredDocument', $args);
|
||||
else $output = executeQuery('document.insertDeclaredDocument', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue