]> git.mxchange.org Git - friendica.git/commitdiff
Fix a notice when sending relocation messages
authorMichael <heluecht@pirati.ca>
Tue, 23 Oct 2018 02:24:24 +0000 (02:24 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 23 Oct 2018 02:24:24 +0000 (02:24 +0000)
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'])) {