1
1
Fork 0

Add a default value for $data['version'] in Model\GServer

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1327320541
This commit is contained in:
Hypolite Petovan 2022-11-26 17:28:55 -05:00
parent b6d62003a6
commit a5f601718f

View file

@ -1213,7 +1213,7 @@ class GServer
if (!empty($data['url'])) {
$serverdata['platform'] = strtolower($data['platform']);
$serverdata['version'] = $data['version'];
$serverdata['version'] = $data['version'] ?? 'N/A';
}
if (!empty($data['plugins'])) {
@ -2172,7 +2172,7 @@ class GServer
foreach ($servers['instances'] as $server) {
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
self::add($url);
}
}
}
}
}