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:
Kijin Sung 2017-09-14 00:14:01 +09:00
parent 8e5c30bf63
commit 8e1cb8b3a9

View file

@ -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;