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 025397f..523753a 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 '';