From 170f7f95b95375fe3137c3c95f346b40a9355c0f Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 15 Aug 2022 17:46:30 +0900 Subject: [PATCH] =?UTF-8?q?#1973=20=EB=B3=B4=EC=99=84=20-=20=EB=8C=80?= =?UTF-8?q?=EB=8C=93=EA=B8=80=EC=9D=B4=20=EC=9E=88=EC=9D=84=20=EB=95=8C?= =?UTF-8?q?=EB=A7=8C=20=EC=9E=90=EB=A6=AC=EB=A5=BC=20=EB=82=A8=EA=B8=B0?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95=ED=95=9C=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0,=20=EB=8C=80=EB=8C=93=EA=B8=80=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EB=8C=93=EA=B8=80=EC=9D=80=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/comment/comment.admin.controller.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/modules/comment/comment.admin.controller.php b/modules/comment/comment.admin.controller.php index e02971f20..8b9385b9d 100644 --- a/modules/comment/comment.admin.controller.php +++ b/modules/comment/comment.admin.controller.php @@ -252,11 +252,16 @@ class commentAdminController extends comment if(count($childs) > 0) { $output = $oCommentController->updateCommentByDelete($comment, true); - if(!$output->toBool() && $output->error !== -2) - { - $oDB->rollback(); - return $output; - } + } + else + { + $output = $oCommentController->deleteComment($comment_srl, true, toBool($isTrash)); + } + + if(!$output->toBool() && $output->error !== -2) + { + $oDB->rollback(); + return $output; } } else