X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FPostUpdate.php;h=a8a0a1abd743826773c4774b56a6fb413e9e7863;hb=e8fee5644b5e746f8c09e604caac3d678f376989;hp=9dbb0a94859f462ed2b0eea7b32e1227d59ddb0a;hpb=419fe67c6ca23dff0b2ec59d2af0c5e29699a648;p=friendica.git diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 9dbb0a9485..a8a0a1abd7 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 = $max_item_delivery_data['iid'] ?? 0; Logger::info('Start update1297 with max iid: ' . $max_iid); @@ -1038,7 +1038,6 @@ class PostUpdate Logger::info('Start', ['uri-id' => $id]); - $start_id = $id; $rows = 0; $received = ''; @@ -1078,7 +1077,7 @@ class PostUpdate Logger::info('Processed', ['rows' => $rows, 'last' => $id, 'last-received' => $received]); - if ($start_id == $id) { + if ($rows <= 100) { DI::config()->set('system', 'post_update_version', 1452); Logger::info('Done'); return true;