]> git.mxchange.org Git - friendica.git/commitdiff
Ward against potentially missing "platform" array key in Model\GServer::fetchSiteinfo
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Feb 2023 13:35:33 +0000 (08:35 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 1 Feb 2023 13:35:33 +0000 (08:35 -0500)
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1411635902

src/Model/GServer.php

index 7e3f0f480238f8754efe32058744e58d7ea0a49c..a74f50fd65e16cc42d4bc1465d5b2a4eb1c2a09e 100644 (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';
                }