From: Jonny Tischbein Date: Sun, 18 Nov 2018 11:46:21 +0000 (+0100) Subject: Add fallback if comment as no parent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a36a780b99a202f6134a9bdf271dbd83e1f5bda9;p=friendica.git Add fallback if comment as no parent --- diff --git a/include/items.php b/include/items.php index 0fc8fad604..b9e1a0c994 100644 --- a/include/items.php +++ b/include/items.php @@ -429,6 +429,11 @@ function drop_item($id, $return = '') $a->internalRedirect('display/' . $parentitem['guid']); //NOTREACHED } + // In case something goes wrong + else { + $a->internalRedirect('network'); + //NOTREACHED + } } else { // if unknown location or deleting top level post called from display