X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProfile.php;h=d27faaf5cd7d08fcfad4ae655f12a845277dcab1;hb=073695b33c5f9c5d89d91958b09259c59e12dd98;hp=8a9333734bb15b0e27b588dcc387d43c8188cf0b;hpb=7ec07178c827b95e6911ecde08e04de66088462c;p=friendica.git diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 8a9333734b..d27faaf5cd 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -162,7 +162,6 @@ class Profile * Returns a formatted location string from the given profile array * * @param array $profile Profile array (Generated from the "profile" table) - * * @return string Location string */ public static function formatLocation(array $profile): string @@ -222,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 (!isset($profile['account_removed']) || $profile['account_removed']) { Logger::info('profile error: ' . DI::args()->getQueryString()); return []; }