aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-10-19 13:10:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-10-19 13:10:13 +0000
commitbc0898f55e2c0bda196fa44cc7d1bb15b6fda649 (patch)
tree47192341eaa0ae65e53478ea32d9e0047a523579 /phpBB/includes/ucp/ucp_pm.php
parent8963b032de7c14151d9432ca208038c4f515d961 (diff)
downloadforums-bc0898f55e2c0bda196fa44cc7d1bb15b6fda649.tar
forums-bc0898f55e2c0bda196fa44cc7d1bb15b6fda649.tar.gz
forums-bc0898f55e2c0bda196fa44cc7d1bb15b6fda649.tar.bz2
forums-bc0898f55e2c0bda196fa44cc7d1bb15b6fda649.tar.xz
forums-bc0898f55e2c0bda196fa44cc7d1bb15b6fda649.zip
fixing some annoying bugs
git-svn-id: file:///svn/phpbb/trunk@8204 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php
index e843e89139..9ad6766ee8 100644
--- a/phpBB/includes/ucp/ucp_pm.php
+++ b/phpBB/includes/ucp/ucp_pm.php
@@ -249,10 +249,11 @@ class ucp_pm
// If new messages arrived, place them into the appropriate folder
$num_not_moved = $num_removed = 0;
+ $release = request_var('release', 0);
if ($user->data['user_new_privmsg'] && $action == 'view_folder')
{
- $return = place_pm_into_folder($global_privmsgs_rules, request_var('release', 0));
+ $return = place_pm_into_folder($global_privmsgs_rules, $release);
$num_not_moved = $return['not_moved'];
// Make sure num_not_moved is valid.
@@ -270,6 +271,12 @@ class ucp_pm
$num_removed = $return['deleted'];
}
+ // If user released the message, we will re-calculate the statistics (again)
+ if ($release)
+ {
+ fix_pm_counts();
+ }
+
if (!$msg_id && $folder_id == PRIVMSGS_NO_BOX)
{
$folder_id = PRIVMSGS_INBOX;