X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FPostUpdate.php;h=6d744a1ba1a26e1db2102fad690af49bc96212e9;hb=612e91b603a5a5817839d04d120e1cf672b8a80e;hp=777d541969cc50a756bae67ab53919d2bd4019ee;hpb=50580fd04cf7639905ff77dd8a58910c9c8c5a52;p=friendica.git diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 777d541969..6d744a1ba1 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -1038,8 +1038,8 @@ class PostUpdate Logger::info('Start', ['uri-id' => $id]); - $start_id = $id; - $rows = 0; + $rows = 0; + $received = ''; $conversations = DBA::p("SELECT `post-view`.`uri-id`, `conversation`.`source`, `conversation`.`received` FROM `conversation` INNER JOIN `post-view` ON `post-view`.`uri` = `conversation`.`item-uri` @@ -1077,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;