From: Roland Häder Date: Mon, 18 Jul 2022 21:48:36 +0000 (+0200) Subject: Fixed E_NOTICE, for some strange reason 'account_removed' isn't around? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb2a052a70bfa1d311483c1f978921586cd262a5;p=friendica.git Fixed E_NOTICE, for some strange reason 'account_removed' isn't around? --- diff --git a/src/Model/Profile.php b/src/Model/Profile.php index a3dcc60b1c..db79134fbd 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -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 []; }