]> git.mxchange.org Git - friendica.git/commitdiff
Fix warning
authorMichael <heluecht@pirati.ca>
Wed, 10 Jul 2024 22:01:06 +0000 (22:01 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 10 Jul 2024 22:01:06 +0000 (22:01 +0000)
src/Network/Probe.php

index 7c589745aa7749c8e225dc428a80b35f80374fe9..a5f90e4373475d88dad2b2a62e1214c83d0ab1a2 100644 (file)
@@ -957,7 +957,7 @@ class Probe
                if (!empty($json['public_forum'])) {
                        $data['community'] = $json['public_forum'];
                        $data['account-type'] = User::ACCOUNT_TYPE_COMMUNITY;
-               } elseif ($json['channel_type'] == 'normal') {
+               } elseif (($json['channel_type'] ?? '') == 'normal') {
                        $data['account-type'] = User::ACCOUNT_TYPE_PERSON;
                }