From bc0898f55e2c0bda196fa44cc7d1bb15b6fda649 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 19 Oct 2007 13:10:13 +0000 Subject: fixing some annoying bugs git-svn-id: file:///svn/phpbb/trunk@8204 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/ucp/ucp_pm.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/ucp/ucp_pm.php') 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; -- cgit v1.2.1