부모가 없는 자식 댓글을 휴지통 복원하는 경우 에러조차없이 그냥 삭제되는 문제 수정

select 쿼리 결과가 없는 것은 에러가 아님
This commit is contained in:
conory 2018-10-25 22:51:55 +09:00
parent 4cb447f5bf
commit 964f87c276

View file

@ -512,7 +512,7 @@ class commentController extends comment
// return if no parent comment exists
if(!$parent_output->toBool() || !$parent_output->data)
{
return $parent_output;
return new BaseObject(-1, 'parent comment does not exist');
}
$parent = $parent_output->data;