mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:00:17 +00:00
Merge pull request #12762 from MrPetovan/bug/warnings
Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo
This commit is contained in:
commit
ac469742b1
1 changed files with 1 additions and 1 deletions
|
@ -1416,7 +1416,7 @@ class GServer
|
||||||
$serverdata['detection-method'] = self::DETECT_SITEINFO_JSON;
|
$serverdata['detection-method'] = self::DETECT_SITEINFO_JSON;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($data['url'])) {
|
if (!empty($data['platform'])) {
|
||||||
$serverdata['platform'] = strtolower($data['platform']);
|
$serverdata['platform'] = strtolower($data['platform']);
|
||||||
$serverdata['version'] = $data['version'] ?? 'N/A';
|
$serverdata['version'] = $data['version'] ?? 'N/A';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue