From a36a780b99a202f6134a9bdf271dbd83e1f5bda9 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Sun, 18 Nov 2018 12:46:21 +0100 Subject: [PATCH] Add fallback if comment as no parent --- include/items.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/items.php b/include/items.php index 0fc8fad60..b9e1a0c99 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