From 297ff765901e5baa55c5a87bb9c5db9450079700 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Oct 2021 20:56:45 -0400 Subject: [PATCH] Relax check on id parameter in /photo - Address https://github.com/friendica/friendica/issues/10756#issuecomment-933020126 - Address https://github.com/friendica/friendica/issues/10755#issuecomment-933020316 --- src/Module/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Photo.php b/src/Module/Photo.php index ea6af26367..e1a8eef87b 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -98,7 +98,7 @@ class Photo extends BaseModule } // Please refactor this for the love of everything that's good - if (!empty($parameters['id'])) { + if (isset($parameters['id'])) { $uid = $parameters['id']; }