Skip to content

Commit

Permalink
allow surfing, if no timelimit set.
Browse files Browse the repository at this point in the history
thx, theli


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@920 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Oct 12, 2005
1 parent 0ae166c commit 9ff2bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/de/anomic/data/userDB.java
Expand Up @@ -246,7 +246,7 @@ public Long getLastAccess() {
}

public boolean canSurf(){
if( this.getTimeLimit().longValue() <= 0 || (this.updateLastAccess(true) < this.getTimeLimit().longValue()) )//no timelimit or timelimit not reached
if( this.getTimeLimit() == null || this.getTimeLimit().longValue() <= 0 || (this.updateLastAccess(true) < this.getTimeLimit().longValue()) )//no timelimit or timelimit not reached
return true;
else
return false;
Expand Down

0 comments on commit 9ff2bd2

Please sign in to comment.