]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/PostUpdate.php
Move relocation feature in its separate class
[friendica.git] / src / Database / PostUpdate.php
index 9dbb0a94859f462ed2b0eea7b32e1227d59ddb0a..6d744a1ba1a26e1db2102fad690af49bc96212e9 100644 (file)
@@ -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;