Permalink
Browse files

поправил закачку userpic

  • Loading branch information...
1 parent 3c97a11 commit 0dcc5d6e9b39f6231a238fee50484c48970bc8e2 @maxcom committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/ru/org/linux/user/UserDao.java
@@ -301,7 +301,7 @@ public boolean removePhoto(User user, User cleaner) {
*/
@CacheEvict(value="Users", key="#user.id")
public void setPhoto(User user, String photo){
- jdbcTemplate.update("UPDATE users SET photo=? WHERE id=? and photo!=?", photo, user.getId(), photo);
+ jdbcTemplate.update("UPDATE users SET photo=? WHERE id=?", photo, user.getId());
}
/**

0 comments on commit 0dcc5d6

Please sign in to comment.