Bug #468

Post count accepts minus numbers

Added by Joe Cotton over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:09/25/2009
Priority:Normal Due date:
Assignee:Ryan Gordon % Done:

100%

Category:Counters
Target version:1.4.10
Reproducibility:Always Database Type:
Reported In MyBB Version:1.4.8 Database Version:
PHP Version: SQA assignments:
Browser:

Description

The user post count accepts minus numbers.

Steps to reproduce:
1. Login to admincp
2. Go onto the users and groups
3. Edit a user and change the user's post count to -10.
4. Save.

Associated revisions

Revision 4492
Added by Ryan Gordon over 2 years ago

Fixes Post count accepts minus numbers (fixes:468)

History

Updated by Matt Rogowski over 2 years ago

This can also happen when someone deletes all their posts, not sure how, but there are people on the comm. forums with as many as -4 posts, would be better for consistency to see if the new post count would be a - number and set it to 0 instead.

Updated by Ryan Gordon over 2 years ago

I would say this is more of a feature request then a bug. If an administrator intentionally changed the number to something else, they should have a reason to do so.

Also, you can run the user post sync. tool in the ACP.

Updated by Tom Moore over 2 years ago

Can the "postnum" field be changed to unsigned? That way, it would be impossible to change the number below 0.

Then again, it would be better to have an error message for the user...

Updated by Ryan Gordon over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4492.

Updated by Ryan Gordon over 2 years ago

  • Assignee set to Ryan Gordon
  • Target version set to 1.4.10

Updated by Michael Schlechtinger over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF