Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ReliQArts/laravel-guided-image
Browse files Browse the repository at this point in the history
  • Loading branch information
reliq committed Nov 16, 2016
2 parents a326c40 + e73e6e9 commit a519cbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ReliQArts/GuidedImage/Traits/ImageGuider.php
Expand Up @@ -190,7 +190,9 @@ public function resized(Request $request, GuidedContract $guidedImage, $width, $
}

// if no image; abort
if (!$image) abort(404);
if (!$image) {
abort(404);
}

// Setup response with appropriate headers
$response = ($object) ? $image : new Response(File::get($skimFile), 200, $this->getImageHeaders($request, $image) ?: []);
Expand Down

0 comments on commit a519cbf

Please sign in to comment.