]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5997 from annando/notice-relocation
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 23 Oct 2018 02:40:47 +0000 (22:40 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Oct 2018 02:40:47 +0000 (22:40 -0400)
Fix a notice when sending relocation messages

src/Worker/Delivery.php

index 1c353fb6327e8da4e3621e8344f7eaea51bb96d1..4feb341b372debd8f2c13ab81480cca763dbd792 100644 (file)
@@ -54,6 +54,7 @@ class Delivery extends BaseObject
                        $uid = $target_item['uid'];
                } elseif ($cmd == self::RELOCATION) {
                        $uid = $item_id;
+                       $target_item = [];
                } else {
                        $item = Item::selectFirst(['parent'], ['id' => $item_id]);
                        if (!DBA::isResult($item) || empty($item['parent'])) {