* 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
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 [];
}