]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/PostUpdate.php
Added description
[friendica.git] / src / Database / PostUpdate.php
index 777d541969cc50a756bae67ab53919d2bd4019ee..6d744a1ba1a26e1db2102fad690af49bc96212e9 100644 (file)
@@ -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;