]> git.mxchange.org Git - friendica.git/commitdiff
Relax check on id parameter in /photo
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Oct 2021 00:56:45 +0000 (20:56 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Oct 2021 00:59:47 +0000 (20:59 -0400)
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-933020126
- Address https://github.com/friendica/friendica/issues/10755#issuecomment-933020316

src/Module/Photo.php

index ea6af2636739ee66533025796f1269a779b89875..e1a8eef87b85cf4335a77800b4ed0fc62ece7f3a 100644 (file)
@@ -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'];
                        }