From: Hypolite Petovan Date: Mon, 4 Oct 2021 00:56:45 +0000 (-0400) Subject: Relax check on id parameter in /photo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=297ff765901e5baa55c5a87bb9c5db9450079700;p=friendica.git 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 --- 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']; }