Fix notice in Worker\Delivery
This commit is contained in:
parent
ff643c4b6a
commit
e9c9eb9c66
1 changed files with 1 additions and 2 deletions
|
@ -39,13 +39,13 @@ class Delivery extends BaseObject
|
||||||
$followup = false;
|
$followup = false;
|
||||||
$public_message = false;
|
$public_message = false;
|
||||||
|
|
||||||
|
$items = [];
|
||||||
if ($cmd == self::MAIL) {
|
if ($cmd == self::MAIL) {
|
||||||
$target_item = DBA::selectFirst('mail', [], ['id' => $item_id]);
|
$target_item = DBA::selectFirst('mail', [], ['id' => $item_id]);
|
||||||
if (!DBA::isResult($target_item)) {
|
if (!DBA::isResult($target_item)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$uid = $target_item['uid'];
|
$uid = $target_item['uid'];
|
||||||
$items = [];
|
|
||||||
} elseif ($cmd == self::SUGGESTION) {
|
} elseif ($cmd == self::SUGGESTION) {
|
||||||
$target_item = DBA::selectFirst('fsuggest', [], ['id' => $item_id]);
|
$target_item = DBA::selectFirst('fsuggest', [], ['id' => $item_id]);
|
||||||
if (!DBA::isResult($target_item)) {
|
if (!DBA::isResult($target_item)) {
|
||||||
|
@ -65,7 +65,6 @@ class Delivery extends BaseObject
|
||||||
$params = ['order' => ['id']];
|
$params = ['order' => ['id']];
|
||||||
$itemdata = Item::select([], $condition, $params);
|
$itemdata = Item::select([], $condition, $params);
|
||||||
|
|
||||||
$items = [];
|
|
||||||
while ($item = Item::fetch($itemdata)) {
|
while ($item = Item::fetch($itemdata)) {
|
||||||
if ($item['id'] == $parent_id) {
|
if ($item['id'] == $parent_id) {
|
||||||
$parent = $item;
|
$parent = $item;
|
||||||
|
|
Loading…
Reference in a new issue