Fix for vier theme / NonAjax Call
This commit is contained in:
parent
b66bcb20da
commit
6b43174a74
2 changed files with 7 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue