diff --git a/mod/item.php b/mod/item.php index 2aaa3a38f0..54ef53a4b8 100644 --- a/mod/item.php +++ b/mod/item.php @@ -885,7 +885,12 @@ function item_content(App $a) if ($a->isAjax()) { $o = Item::deleteForUser(['id' => $a->argv[2]], local_user()); } else { - $o = drop_item($a->argv[2], $a->argv[3]); + if (!empty($a->argv[3])) { + $o = drop_item($a->argv[2], $a->argv[3]); + } + else { + $o = drop_item($a->argv[2]); + } } if ($a->isAjax()) { diff --git a/view/theme/vier/templates/wall_thread.tpl b/view/theme/vier/templates/wall_thread.tpl index 6c636d53b6..8debce3649 100644 --- a/view/theme/vier/templates/wall_thread.tpl +++ b/view/theme/vier/templates/wall_thread.tpl @@ -1,4 +1,3 @@ - {{if $mode == display}} {{else}} {{if $item.comment_firstcollapsed}} @@ -146,7 +145,7 @@ {{/if}} {{if $item.drop.dropping}} - {{$item.drop.delete}} + {{$item.drop.delete}} {{/if}} {{if $item.edpost}} {{$item.edpost.1}}