Fix warning

This commit is contained in:
Michael 2024-07-10 22:01:06 +00:00
parent d63edf5dfa
commit 15ccd23778

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