From 9a8b50713160b25fd367fd172916e97bfed9dc7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 20 Jan 2023 01:07:05 +0100 Subject: [PATCH] Ops, my bad --- src/Model/GServer.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index e928d6a9be..0a62c77e36 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -812,8 +812,9 @@ class GServer $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED])); $serverdata['last_contact'] = DateTimeFormat::utcNow(); - $serverdata['failed'] = false; $serverdata['registered-users'] = $serverdata['registered-users'] ?? 0; + $serverdata['failed'] = false; + $serverdata['blocked'] = false; // Numbers above a reasonable value (10 millions) are ignored if ($serverdata['registered-users'] > 10000000) { @@ -827,10 +828,6 @@ class GServer $serverdata['registered-users'] = 0; } - $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED])); - $serverdata['last_contact'] = DateTimeFormat::utcNow(); - $serverdata['failed'] = false; - $serverdata['blocked'] = false; $id = 0; -- 2.39.5