1
0
Fork 0

Fix for vier theme / NonAjax Call

This commit is contained in:
Jonny Tischbein 2018-10-26 14:05:59 +02:00
commit 6b43174a74
2 changed files with 7 additions and 3 deletions

View file

@ -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()) {