Merge pull request #11748 from Quix0r/fixes/e_notice-account_removed

Fixed E_NOTICE, for some strange reason 'account_removed' isn't around?
This commit is contained in:
Hypolite Petovan 2022-07-18 18:23:42 -04:00 committed by GitHub
commit 4a11773d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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