From: Hypolite Petovan Date: Wed, 1 Feb 2023 13:35:33 +0000 (-0500) Subject: Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=301fa681c54006bff94f46bbed8e88ca66b8bd2f;p=friendica.git Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo - Address https://github.com/friendica/friendica/issues/12488#issuecomment-1411635902 --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 7e3f0f4802..a74f50fd65 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -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'; }