make return url optional
This commit is contained in:
parent
6b43174a74
commit
645f9387fa
1 changed files with 2 additions and 3 deletions
|
@ -345,7 +345,7 @@ function drop_items(array $items)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function drop_item($id, $return)
|
function drop_item($id, $return = '')
|
||||||
{
|
{
|
||||||
$a = BaseObject::getApp();
|
$a = BaseObject::getApp();
|
||||||
|
|
||||||
|
@ -410,8 +410,7 @@ function drop_item($id, $return)
|
||||||
Item::deleteForUser(['id' => $item['id']], local_user());
|
Item::deleteForUser(['id' => $item['id']], local_user());
|
||||||
|
|
||||||
$return_url = hex2bin($return);
|
$return_url = hex2bin($return);
|
||||||
notice("RETURN: " + $return_url);
|
if (empty($return_url) || strpos($return_url, 'display') !== false) {
|
||||||
if (empty($return_url) || strpos($return_url, 'display') ) {
|
|
||||||
$a->internalRedirect('network');
|
$a->internalRedirect('network');
|
||||||
//NOTREACHED
|
//NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue