Add fallback if comment as no parent

This commit is contained in:
Jonny Tischbein 2018-11-18 12:46:21 +01:00
parent 5d464c353f
commit a36a780b99

View file

@ -429,6 +429,11 @@ function drop_item($id, $return = '')
$a->internalRedirect('display/' . $parentitem['guid']); $a->internalRedirect('display/' . $parentitem['guid']);
//NOTREACHED //NOTREACHED
} }
// In case something goes wrong
else {
$a->internalRedirect('network');
//NOTREACHED
}
} }
else { else {
// if unknown location or deleting top level post called from display // if unknown location or deleting top level post called from display