From 301fa681c54006bff94f46bbed8e88ca66b8bd2f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 1 Feb 2023 08:35:33 -0500 Subject: [PATCH] Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo - Address https://github.com/friendica/friendica/issues/12488#issuecomment-1411635902 --- src/Model/GServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }