Add fallback if comment as no parent

This commit is contained in:
Jonny Tischbein 2018-11-18 12:46:21 +01:00
父節點 5d464c353f
當前提交 a36a780b99
共有 1 個文件被更改,包括 5 次插入0 次删除

查看文件

@ -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