From 011b47c01deded9e8e933cd1ca48fa4cec557ee5 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 8 Jun 2007 08:26:05 +0000 Subject: [PATCH] fix bug #12135 with the patch provided by APTX git-svn-id: file:///svn/phpbb/trunk@7725 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_privmsgs.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index 9ce281ba12..00620bbfb7 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -498,7 +498,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false) // We place actions into arrays, to save queries. $num_new = $num_unread = 0; - $sql = $unread_ids = $delete_ids = $important_ids = array(); + $sql = $unread_ids = $delete_ids = $important_ids = $move_into_folder = array(); foreach ($action_ary as $msg_id => $msg_ary) { @@ -517,9 +517,7 @@ function place_pm_into_folder(&$global_privmsgs_rules, $release = false) case ACTION_PLACE_INTO_FOLDER: // Folder actions have precedence, so we will remove any other ones $folder_action = true; - $_folder_id = (int) $rule_ary['folder_id']; - $move_into_folder = array(); - $move_into_folder[$_folder_id][] = $msg_id; + $move_into_folder[(int) $rule_ary['folder_id']][] = $msg_id; $num_new++; break;