mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +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
|
// return if no parent comment exists
|
||||||
if(!$parent_output->toBool() || !$parent_output->data)
|
if(!$parent_output->toBool() || !$parent_output->data)
|
||||||
{
|
{
|
||||||
return;
|
return $parent_output;
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = $parent_output->data;
|
$parent = $parent_output->data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue