mirror of
https://github.com/friendica/friendica
synced 2024-11-18 00:23:47 +00:00
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:
parent
3a7586e3f7
commit
952e6c688c
1 changed files with 1 additions and 1 deletions
|
@ -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.'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue