mirror of
https://github.com/friendica/friendica
synced 2024-11-13 19:42:54 +00:00
Avoid warnings
This commit is contained in:
parent
4e02c347b6
commit
3052ae71b7
1 changed files with 5 additions and 3 deletions
|
@ -2164,9 +2164,11 @@ class GServer
|
||||||
if ($curlResult->isSuccess()) {
|
if ($curlResult->isSuccess()) {
|
||||||
$servers = json_decode($curlResult->getBody(), true);
|
$servers = json_decode($curlResult->getBody(), true);
|
||||||
|
|
||||||
foreach ($servers['instances'] as $server) {
|
if (!empty($servers['instances'])) {
|
||||||
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
|
foreach ($servers['instances'] as $server) {
|
||||||
self::add($url);
|
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
|
||||||
|
self::add($url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue