]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Add fallback if comment as no parent
[friendica.git] / 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