Boolean logic glitch fixed for when to return a 404

This commit is contained in:
Christoph Haas 2016-06-16 10:45:11 +02:00
parent 30924aae0e
commit 458d1b668d

View file

@ -84,7 +84,7 @@ class PackagesController < ApplicationController
@screenshot = @package.screenshots.first
# Return a 404 if the package has no screenshots or the image was not found
unless @screenshot or @screenshot.image.path
unless @screenshot and @screenshot.image.path
thumbnail404
return
end