replaced duplicate code with method

This commit is contained in:
Philipp Holzer 2019-03-09 20:50:06 +01:00
parent 20498d1d40
commit f7c7851c2d
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5

View File

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