Fixed E_NOTICE, for some strange reason 'account_removed' isn't around?

This commit is contained in:
Roland Häder 2022-07-18 23:48:36 +02:00
parent 42d411712b
commit cb2a052a70
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -221,7 +221,7 @@ class Profile
public static function load(App $a, string $nickname, bool $show_contacts = true)
{
$profile = User::getOwnerDataByNick($nickname);
if (empty($profile) || $profile['account_removed']) {
if (empty($profile) || !isset($profile['account_removed']) || $profile['account_removed']) {
Logger::info('profile error: ' . DI::args()->getQueryString());
return [];
}