X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FGServer.php;h=758ff0f13538da8020e524da74d6a3b02d45f2d5;hb=f2c1ecd19bb344137a91faab58d9a2524e0c8893;hp=b034ded754d2862b4b77dded79abe767a9e06fa4;hpb=a7fd9e3223ce95dc508c40353b4019b886f42902;p=friendica.git diff --git a/src/Model/GServer.php b/src/Model/GServer.php index b034ded754..758ff0f135 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -675,7 +675,7 @@ class GServer } // All following checks are done for systems that always have got a "host-meta" endpoint. - // With this check we don't have to waste time and ressources for dead systems. + // With this check we don't have to waste time and resources for dead systems. // Also this hopefully prevents us from receiving abuse messages. if (($serverdata['network'] == Protocol::PHANTOM) || in_array($serverdata['detection-method'], self::DETECT_UNSPECIFIC)) { $validHostMeta = self::validHostMeta($url); @@ -869,7 +869,7 @@ class GServer } // Sanitize incoming data, see https://github.com/friendica/friendica/issues/8565 - $data['subscribe'] = (bool)$data['subscribe'] ?? false; + $data['subscribe'] = (bool)($data['subscribe'] ?? false); if (!$data['subscribe'] || empty($data['scope']) || !in_array(strtolower($data['scope']), ['all', 'tags'])) { $data['scope'] = '';