From 952e6c688c8da470591f2abd25fb78dabc2236a2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 15 Nov 2022 09:04:12 -0500 Subject: [PATCH] Suppress warning when /phots route is used without a nickname - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1314964388 --- mod/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/photos.php b/mod/photos.php index 95627b6da4..3923bdfc89 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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.')); }