mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
부모가 없는 자식 댓글을 휴지통 복원하는 경우 에러조차없이 그냥 삭제되는 문제 수정
select 쿼리 결과가 없는 것은 에러가 아님
This commit is contained in:
parent
4cb447f5bf
commit
964f87c276
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue