]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Funkwhale context file moved
[friendica.git] / src / Model / Profile.php
index 8a9333734bb15b0e27b588dcc387d43c8188cf0b..d27faaf5cd7d08fcfad4ae655f12a845277dcab1 100644 (file)
@@ -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 [];
                }