Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1411635902
This commit is contained in:
parent
31d01dc684
commit
301fa681c5
1 changed files with 1 additions and 1 deletions
|
@ -1416,7 +1416,7 @@ class GServer
|
|||
$serverdata['detection-method'] = self::DETECT_SITEINFO_JSON;
|
||||
}
|
||||
|
||||
if (!empty($data['url'])) {
|
||||
if (!empty($data['platform'])) {
|
||||
$serverdata['platform'] = strtolower($data['platform']);
|
||||
$serverdata['version'] = $data['version'] ?? 'N/A';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue