Closed (fixed)
Project:
User Stats
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 06:38 UTC
Updated:
30 Nov 2008 at 21:33 UTC
It's likely an outlier case but I had cases where decrementing post counts ended up in some users having negative post counts. I won't get into the hows and whys that might happen but I figured simply adding a floor to the post count when doing decrements provides some peace of mind. It's likely that our problem is related to our use of the moderate bit for the node table (we have moderated classified ads). See patch.
| Comment | File | Size | Author |
|---|---|---|---|
| user_stats.module.patch | 799 bytes | jaydub |
Comments
Comment #1
liam mcdermott commentedGood idea! Committed. :)