]> git.mxchange.org Git - friendica.git/commitdiff
Fixed E_NOTICE, for some strange reason 'account_removed' isn't around?
authorRoland Häder <roland@mxchange.org>
Mon, 18 Jul 2022 21:48:36 +0000 (23:48 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 18 Jul 2022 21:49:58 +0000 (23:49 +0200)
src/Model/Profile.php

index a3dcc60b1c278a2d160a9327a76c63652377ede6..db79134fbd07e34aa71416ff531470ecc1739ddc 100644 (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 [];
                }