From: Roland Häder Date: Thu, 29 Oct 2020 21:34:43 +0000 (+0100) Subject: Fixed possibble "Trying to access array offset on value of type bool" E_NOTICE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65da5246ca46c224dcee97ba99ca79f4100c96a3;p=friendica.git Fixed possibble "Trying to access array offset on value of type bool" E_NOTICE Signed-off-by: Roland Häder --- diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 6d744a1ba1..7e03d7e678 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -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_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);