Hi,
I've noticed that there is a small bug in the Internal Mail function of Webdate. If a member receives a message (internal mail) and deletes this message without reading it, then the Inbox shows that there is 1 unread message, but the message itself is gone. The reason is that when a member reads the message before deleting it, than the system updates the status of the message as "read" in the database and than when the member deletes it is, everything is OK. But, if the message is not read, just deleted, the delete function only updates the database record for this message as "deleted", but it remains as "unread". So, here is the file and the mod to fix this:
file: delete_message.php
Line 35 from the original code:
q("DELETE FROM dt_messages WHERE id='$key'");
replace line 35 with the following:
if($db_field == "show_in_inbox")
q("UPDATE dt_messages SET show_in_inbox='0', is_read='1' WHERE id='$key'");
else
q("UPDATE dt_messages SET show_in_sent='0' WHERE id='$key'");
This small fix, also resolves an issue with deleted messages and the Sent box.
Hope this works for you.
