Fixed E_NOTICE, for some strange reason 'account_removed' isn't around?
This commit is contained in:
parent
42d411712b
commit
cb2a052a70
|
@ -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 [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user