This commit is contained in:
Kekskurse 2021-01-17 03:05:09 +01:00
parent 7c60cedfa2
commit c41207be87

View file

@ -44,7 +44,7 @@ class PublicController extends BaseController
public function returnImageFile($tenant, $gallery, $image, Request $request) {
$sizeName = $request->input("size", "medium");
if(array_key_exists($sizeName, $this->size)) {
if(!array_key_exists($sizeName, $this->size)) {
abort(400, "Size not exists");
}
$size = $this->size[$sizeName];