Merge pull request #12762 from MrPetovan/bug/warnings

Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo
This commit is contained in:
Michael Vogel 2023-02-02 11:54:50 +01:00 committed by GitHub
commit ac469742b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}