mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
This is the correct way:
<?php if (!isset($foo['account_removed) || $foo['account_removed']) ?>
This commit is contained in:
parent
4e5179a7b3
commit
cf8698afe6
3 changed files with 3 additions and 3 deletions
|
@ -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) || !isset($profile['account_removed']) || $profile['account_removed']) {
|
||||
if (!isset($profile['account_removed']) || $profile['account_removed']) {
|
||||
Logger::info('profile error: ' . DI::args()->getQueryString());
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue