make return url optional

这个提交包含在:
Jonny Tischbein 2018-10-26 15:00:15 +02:00
父节点 6b43174a74
当前提交 645f9387fa
共有 1 个文件被更改,包括 2 次插入3 次删除

查看文件

@ -345,7 +345,7 @@ function drop_items(array $items)
}
}
function drop_item($id, $return)
function drop_item($id, $return = '')
{
$a = BaseObject::getApp();
@ -410,8 +410,7 @@ function drop_item($id, $return)
Item::deleteForUser(['id' => $item['id']], local_user());
$return_url = hex2bin($return);
notice("RETURN: " + $return_url);
if (empty($return_url) || strpos($return_url, 'display') ) {
if (empty($return_url) || strpos($return_url, 'display') !== false) {
$a->internalRedirect('network');
//NOTREACHED
}