mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Fix returning null in insertComment()
This causes a fatal error if someone tries to call toBool() on the return value.
This commit is contained in:
parent
8e5c30bf63
commit
8e1cb8b3a9
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ class commentController extends comment
|
|||
// return if no parent comment exists
|
||||
if(!$parent_output->toBool() || !$parent_output->data)
|
||||
{
|
||||
return;
|
||||
return $parent_output;
|
||||
}
|
||||
|
||||
$parent = $parent_output->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue