Index: user_stats.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/user_stats/user_stats.module,v
retrieving revision 1.2.2.16
diff -b -u -p -r1.2.2.16 user_stats.module
--- user_stats.module	21 Mar 2008 17:53:37 -0000	1.2.2.16
+++ user_stats.module	22 Oct 2008 06:33:40 -0000
@@ -772,7 +772,7 @@ function user_stats_post_count_update(&$
       }
       else {
         $user->$post_count_profile_field--;
-        db_query($sql, $user->$post_count_profile_field, $post_count_profile_field, $user->uid);
+        db_query($sql, max($user->$post_count_profile_field, 0), $post_count_profile_field, $user->uid);
         // Flush user cache.
         _user_stats_user_cache($user->uid, TRUE);
         // Flush token cache
