Merge pull request #5997 from annando/notice-relocation
Fix a notice when sending relocation messages
This commit is contained in:
commit
dc35d2f2f3
|
@ -54,6 +54,7 @@ class Delivery extends BaseObject
|
||||||
$uid = $target_item['uid'];
|
$uid = $target_item['uid'];
|
||||||
} elseif ($cmd == self::RELOCATION) {
|
} elseif ($cmd == self::RELOCATION) {
|
||||||
$uid = $item_id;
|
$uid = $item_id;
|
||||||
|
$target_item = [];
|
||||||
} else {
|
} else {
|
||||||
$item = Item::selectFirst(['parent'], ['id' => $item_id]);
|
$item = Item::selectFirst(['parent'], ['id' => $item_id]);
|
||||||
if (!DBA::isResult($item) || empty($item['parent'])) {
|
if (!DBA::isResult($item) || empty($item['parent'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user