]> git.mxchange.org Git - friendica.git/commitdiff
Add fallback if comment as no parent
authorJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 18 Nov 2018 11:46:21 +0000 (12:46 +0100)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Sun, 18 Nov 2018 11:46:21 +0000 (12:46 +0100)
include/items.php

index 0fc8fad6041d0249bdad28fb0655972123f842cf..b9e1a0c9944d97f2b2d9094b8e67dc414a5b1263 100644 (file)
@@ -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