Browse Source

Fix Module\Photo exit with error

pull/6482/head
fabrixxm 2 years ago
committed by Hypolite Petovan
parent
commit
a46cbfca3d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Module/Photo.php

+ 1
- 1
src/Module/Photo.php 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"]}."]);
}


Loading…
Cancel
Save