Suppress warning when /phots route is used without a nickname

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1314964388
This commit is contained in:
Hypolite Petovan 2022-11-15 09:04:12 -05:00
parent 3a7586e3f7
commit 952e6c688c
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ function photos_content(App $a)
// photos/name/image/xxxxx/edit
// photos/name/image/xxxxx/drop
$user = User::getByNickname(DI::args()->getArgv()[1]);
$user = User::getByNickname(DI::args()->getArgv()[1] ?? '');
if (!DBA::isResult($user)) {
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
}