Closed Graham-72 closed 8 years ago
I'm not sure if this is the fix. You can see in Drupal 7 that the parantheses are the same: http://cgit.drupalcode.org/honeypot/tree/honeypot.module?h=7.x-1.x (line 283). The logic is that it first checks if $honeypot_time exists and if it does then it checks which value is greater. I'm not sure if your change would ever catch any errors.
The one change I do see on the Drupal 7 version is that they're using REQUEST_TIME so perhaps there are some commits that can be applied and maybe one of them could fix an issue you're seeing.
@herbdool thanks, understood. I was too hasty with this PR. I will look more carefully at what is happening.
Extra parentheses needed in if statement.