From f7c7851c2d576b41cb3ab03a6b610ca4dc4eb87d Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 9 Mar 2019 20:50:06 +0100 Subject: [PATCH] replaced duplicate code with method --- src/Core/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Update.php b/src/Core/Update.php index 025397fde0..523753a1b1 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -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 ''; -- 2.39.5