From cb2a052a70bfa1d311483c1f978921586cd262a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 18 Jul 2022 23:48:36 +0200 Subject: [PATCH] Fixed E_NOTICE, for some strange reason 'account_removed' isn't around? --- src/Model/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 []; } -- 2.39.5