조건문을 한줄로 묶음

This commit is contained in:
Johnny 2022-03-24 23:11:07 +09:00
parent 2788392060
commit 4d39685350

View file

@ -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++;
}