From 6b43174a7484a46ceff8f0fabb16b3e4a969d475 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Fri, 26 Oct 2018 14:05:59 +0200 Subject: [PATCH] Fix for vier theme / NonAjax Call --- mod/item.php | 7 ++++++- view/theme/vier/templates/wall_thread.tpl | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) 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}} -- 2.39.5