Boolean logic glitch fixed for when to return a 404
This commit is contained in:
parent
30924aae0e
commit
458d1b668d
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class PackagesController < ApplicationController
|
||||||
@screenshot = @package.screenshots.first
|
@screenshot = @package.screenshots.first
|
||||||
|
|
||||||
# Return a 404 if the package has no screenshots or the image was not found
|
# 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
|
thumbnail404
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue