From: Hypolite Petovan Date: Tue, 15 Nov 2022 14:04:12 +0000 (-0500) Subject: Suppress warning when /phots route is used without a nickname X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=952e6c688c8da470591f2abd25fb78dabc2236a2;p=friendica.git Suppress warning when /phots route is used without a nickname - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1314964388 --- 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.')); }