mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
기존 방식 롤백한뒤 에러 코드를 이용하여 찾지 못하는 경우 -2 에러코드를 리턴 시킴
This commit is contained in:
parent
b4b1188081
commit
2788392060
2 changed files with 7 additions and 15 deletions
|
|
@ -223,12 +223,14 @@ class commentAdminController extends comment
|
|||
}
|
||||
|
||||
$output = $oCommentController->deleteComment($comment_srl, TRUE, toBool($isTrash));
|
||||
if(!$output->toBool())
|
||||
if($output->error !== -2)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
$deleted_count++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue