Skip to content

Commit

Permalink
添加判断user是否存在逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
sumory committed Mar 31, 2012
1 parent f5d0513 commit 7037ea4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions controller/archive.js
Expand Up @@ -386,12 +386,6 @@ exports.view_archives = function(req, res, next) {
});
return;
}
if(!(result.user)){//查不到user
res.render('notify/notify', {
error : '查找用户信息出错'
});
return;
}
res.render('archive/archives', {
result : result,
archives : archives
Expand Down

0 comments on commit 7037ea4

Please sign in to comment.