From 8e142d1da6ecd2a32e60dfe15549652462032413 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 9995ca422b..0c839a78e1 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -783,8 +783,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) { @@ -798,10 +799,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; $gserver = DBA::selectFirst('gserver', ['network'], ['nurl' => Strings::normaliseLink($url)]); if (!DBA::isResult($gserver)) { -- 2.39.5