Topic: Double view when pressing [ New posts ]
Found a bug I think
If you view a post by pressing the "[ New posts ]"-button, the number-of-views counter will increase two steps instead of one...
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 bug reports → Double view when pressing [ New posts ]
Found a bug I think
If you view a post by pressing the "[ New posts ]"-button, the number-of-views counter will increase two steps instead of one...
Yeah, you're right. What the hell? :)
Edit: I found the error. I always though sending the "Location: blaha" header would result in an immediate redirect to that page. Apparently PHP continues execution of the script. The solution is to just insert an exit; at line 84 in viewtopic.php.
Who knows, maybe there will be a 1.1.2 :)
Exactly my thought
There's only one update-query in viewtopic: "UPDATE ...topics SET num_views=num_views+1..." Interesting to se what's wrong
PunBB Forums → PunBB 1.2 bug reports → Double view when pressing [ New posts ]
Powered by PunBB, supported by Informer Technologies, Inc.