Unread 65535, Total 175
Seems a bit off.
If I go into my PM box, the statistics stand at
Inbox contains 90 messages.
You have 175 messages stored, of a total 200 allowed. (Empty Folder)
Last edited:
Unread 65535, Total 175
Inbox contains 90 messages.
You have 175 messages stored, of a total 200 allowed. (Empty Folder)
--- vb3/private.php 2006/04/06 22:49:04 1.338
+++ vb3/private.php 2006/04/29 16:57:15 1.339
@@ -1341,11 +1341,14 @@ if ($_REQUEST['do'] == 'showpm')
{
$db->shutdown_query("UPDATE " . TABLE_PREFIX . "pm SET messageread=1 WHERE userid=" . $vbulletin->userinfo['userid'] . " AND pmid=$pm[pmid]");
- $userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
- $userdm->set_existing($vbulletin->userinfo);
- $userdm->set('pmunread', 'IF(pmunread >= 1, pmunread - 1, 0)', false);
- $userdm->save(true, true);
- unset($userdm);
+ if (!$pm['folderid'])
+ {
+ $userdm =& datamanager_init('User', $vbulletin, ERRTYPE_SILENT);
+ $userdm->set_existing($vbulletin->userinfo);
+ $userdm->set('pmunread', 'IF(pmunread >= 1, pmunread - 1, 0)', false);
+ $userdm->save(true, true);
+ unset($userdm);
+ }
}