]> git.mxchange.org Git - friendica.git/commitdiff
replaced duplicate code with method
authorPhilipp Holzer <admin@philipp.info>
Sat, 9 Mar 2019 19:50:06 +0000 (20:50 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sat, 9 Mar 2019 19:50:06 +0000 (20:50 +0100)
src/Core/Update.php

index 025397fde004ba9c04a99e598af2b23a4ccb2734..523753a1b19942cb35b26031ed539752bcc715d2 100644 (file)
@@ -79,7 +79,7 @@ class Update
                        if (Lock::acquire('dbupdate', 0, Cache::INFINITE)) {
 
                                // recheck again in case we accidentally spawned multiple updates
-                               $stored = intval(self::getBuild());
+                               $stored = self::getBuild();
                                if ($stored >= $current) {
                                        Lock::release('dbupdate');
                                        return '';