Merge pull request #11748 from Quix0r/fixes/e_notice-account_removed
Fixed E_NOTICE, for some strange reason 'account_removed' isn't around?
This commit is contained in:
commit
4a11773d7e
|
@ -221,7 +221,7 @@ class Profile
|
||||||
public static function load(App $a, string $nickname, bool $show_contacts = true)
|
public static function load(App $a, string $nickname, bool $show_contacts = true)
|
||||||
{
|
{
|
||||||
$profile = User::getOwnerDataByNick($nickname);
|
$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());
|
Logger::info('profile error: ' . DI::args()->getQueryString());
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user