Merge pull request #5997 from annando/notice-relocation

Fix a notice when sending relocation messages
This commit is contained in:
Hypolite Petovan 2018-10-22 22:40:47 -04:00 committed by GitHub
commit dc35d2f2f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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'])) {