This is the correct way:

<?php
if (!isset($foo['account_removed) || $foo['account_removed'])
?>
This commit is contained in:
Roland Häder 2022-07-19 18:06:36 +02:00
commit cf8698afe6
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ function photos_init(App $a) {
if (DI::args()->getArgc() > 1) {
$owner = User::getOwnerDataByNick(DI::args()->getArgv()[1]);
if (empty($owner) || $owner['account_removed']) {
if (!isset($owner['account_removed']) || $owner['account_removed']) {
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
}