Topic: Is there a bug about number of ads after deletion?

Hello I recently found a bug in the script (v7.3).  I saw the same problem in an old topic below:
My problem is absolutely the same with that:

...
http://www.deltascripts.com/board/searc … 1085466703
Incorrect number of ads after deleting ads 2008-02-24 15:37:13


Hello,
I have got a problem in displaying the number of ads in V7.4. When a user deletes an ad, the number of ads posted by that user and the total number of ads decreases by 2 instead of one. For example if a user has 3 ads and the total number of ads is 500, after deleting an ad by the user, the total number of ads becomes 498 and the number of ads posted by the user becomes 1!

I was just wondering where this numbers are calculated and how can I solve this problem?
...


By the way, the number of ads in user page and in footer section is always correct. Because script uses count function to calculate total ads instead of getting it from database user table.

Is there a solution for this problem? Which file and code should I change?
I'm looking forward to your replies.

Thanks,

Thumbs up Thumbs down