]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Core/Update.php
authorPhilipp <admin+Github@philipp.info>
Fri, 6 Jan 2023 11:42:56 +0000 (12:42 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Jan 2023 11:42:56 +0000 (12:42 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Core/Update.php

index d440136b55a2e5aff5e0d443e3b81965245a03de..03badb1b5d8a6cadb283a1a32cfbc5590f6c3d74 100644 (file)
@@ -162,14 +162,6 @@ class Update
 
                                        // Checks if the build changed during Lock acquiring (so no double update occurs)
                                        $retryBuild = DI::config()->get('system', 'build');
-                                       // legacy option - check if there's something in the Config table
-                                       if (DBStructure::existsTable('config')) {
-                                               $dbConfig = DBA::selectFirst('config', ['v'], ['cat' => 'system', 'k' => 'build']);
-                                               if (!empty($dbConfig)) {
-                                                       $retryBuild = $dbConfig['v'];
-                                               }
-                                       }
-
                                        if ($retryBuild !== $build) {
                                                Logger::notice('Update already done.', ['from' => $stored, 'to' => $current]);
                                                DI::lock()->release('dbupdate');