Merge pull request #14287 from annando/warning

Fix warning
This commit is contained in:
Tobias Diekershoff 2024-07-12 08:19:34 +02:00 committed by GitHub
commit 33e26b966e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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;
}