From: Philipp Holzer Date: Sat, 9 Mar 2019 19:50:06 +0000 (+0100) Subject: replaced duplicate code with method X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7c7851c2d576b41cb3ab03a6b610ca4dc4eb87d;p=friendica.git replaced duplicate code with method --- 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 '';