Avoid warnings
This commit is contained in:
parent
4e02c347b6
commit
3052ae71b7
1 changed files with 5 additions and 3 deletions
|
@ -2164,12 +2164,14 @@ class GServer
|
|||
if ($curlResult->isSuccess()) {
|
||||
$servers = json_decode($curlResult->getBody(), true);
|
||||
|
||||
if (!empty($servers['instances'])) {
|
||||
foreach ($servers['instances'] as $server) {
|
||||
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
|
||||
self::add($url);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DI::config()->set('poco', 'last_federation_discovery', time());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue