PDA

View Full Version : [fixed] PM Quota bug?



bira
Wed 28th Feb '01, 8:58am
The PM quota is causing me major problem.

I have set it to 200. However, users with as little as 2, 10 or 44 - they all get a message that they have exceeded their quota and therefore cannot receive PMs.

At first I thought they were loonies and didn't notice their PMs in the Sent Items box. But, having checked via the database each and every complaint, I've discovered they are simply right - if they are not an admin, they cannot receive PMs.

I removed the quota altogether for now (set it to zero), but can anyone shed some light on this?

Mike Sullivan
Wed 28th Feb '01, 12:42pm
Wow that was dumb -- looks like we were counting the number of messages the sender had.

Change this line:


$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid]");

to

$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");