Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Fix missed variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
stenington committed Apr 10, 2013
1 parent 7d0cc1a commit 1e5d7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/badge.js
Expand Up @@ -46,7 +46,7 @@ exports.findByHash = function findByHash (req, res, next, hash) {
BadgeImage.findOne({badge_hash: hash}, function (err, image) {
if (err)
return next(err);
if (!badge)
if (!image)
return res.render('errors/404.html', {url: req.url});
req.badgeImage = image;
return next();
Expand Down

0 comments on commit 1e5d7a7

Please sign in to comment.