]> git.mxchange.org Git - friendica.git/commitdiff
make return url optional
authorJonny Tischbein <jonny_tischbein@systemli.org>
Fri, 26 Oct 2018 13:00:15 +0000 (15:00 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 31 Oct 2018 19:09:44 +0000 (20:09 +0100)
include/items.php

index 6eb1345889ca12b584590a05153c05dab321c62a..961a20b240e01548879faad46ffeb5630e16202c 100644 (file)
@@ -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
                }