Fix Module\Photo exit with error

This commit is contained in:
fabrixxm 2018-12-08 18:49:47 +01:00 committed by Hypolite Petovan
parent fdc6608af8
commit a46cbfca3d

View 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"]}."]);
}