Fixed possibble "Trying to access array offset on value of type bool" E_NOTICE
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
13ef86d4a3
commit
65da5246ca
|
@ -133,7 +133,7 @@ class PostUpdate
|
||||||
}
|
}
|
||||||
|
|
||||||
$max_item_delivery_data = DBA::selectFirst('item-delivery-data', ['iid'], ['queue_count > 0 OR queue_done > 0'], ['order' => ['iid']]);
|
$max_item_delivery_data = DBA::selectFirst('item-delivery-data', ['iid'], ['queue_count > 0 OR queue_done > 0'], ['order' => ['iid']]);
|
||||||
$max_iid = $max_item_delivery_data['iid'];
|
$max_iid = (is_array($max_item_delivery_data) && isset($max_item_delivery_data['iid']) ? $max_item_delivery_data['iid'] : 0);
|
||||||
|
|
||||||
Logger::info('Start update1297 with max iid: ' . $max_iid);
|
Logger::info('Start update1297 with max iid: ' . $max_iid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue