]> git.mxchange.org Git - friendica.git/commitdiff
Fix Module\Photo exit with error
authorfabrixxm <fabrix.xm@gmail.com>
Sat, 8 Dec 2018 17:49:47 +0000 (18:49 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:11:39 +0000 (09:11 -0500)
src/Module/Photo.php

index b20c2657a57f401878e6061f0342f60ae19cf87b..3cf500719f9e585f64ecd4da8217bf325f7aae2d 100644 (file)
@@ -84,7 +84,7 @@ class Photo extends BaseModule
 
                if (is_null($img) || !$img->isValid()) {
                        Logger::log("Invalid photo with id {$photo["id"]}.");
-                       System::httpExit(500, "Internal Server Error");
+                       System::httpExit(500, ["description" => "Invalid photo with id {$photo["id"]}."]);
                }