mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
조건문을 한줄로 묶음
This commit is contained in:
parent
2788392060
commit
4d39685350
1 changed files with 3 additions and 6 deletions
|
|
@ -223,13 +223,10 @@ class commentAdminController extends comment
|
|||
}
|
||||
|
||||
$output = $oCommentController->deleteComment($comment_srl, TRUE, toBool($isTrash));
|
||||
if($output->error !== -2)
|
||||
if(!$output->toBool() && $output->error !== -2)
|
||||
{
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
$deleted_count++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue