aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm_viewfolder.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-09-09 08:07:01 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-09-09 08:07:01 +0000
commitdc4619c889c3ac3449555f63445828168055b033 (patch)
tree62287839a9b3eccfcc0293a8637f64d25800d65e /phpBB/includes/ucp/ucp_pm_viewfolder.php
parenta5e4ca259aa98bc3d5abc03dcf4504c2afe91e92 (diff)
downloadforums-dc4619c889c3ac3449555f63445828168055b033.tar
forums-dc4619c889c3ac3449555f63445828168055b033.tar.gz
forums-dc4619c889c3ac3449555f63445828168055b033.tar.bz2
forums-dc4619c889c3ac3449555f63445828168055b033.tar.xz
forums-dc4619c889c3ac3449555f63445828168055b033.zip
define $data array at the correct location. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10123 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_viewfolder.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm_viewfolder.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php
index 43b12a59e6..6493b54e1f 100644
--- a/phpBB/includes/ucp/ucp_pm_viewfolder.php
+++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php
@@ -118,8 +118,6 @@ function view_folder($id, $mode, $folder_id, $folder)
$address_list = get_recipient_strings($folder_info['rowset']);
}
- $data = array();
-
foreach ($folder_info['pm_list'] as $message_id)
{
$row = &$folder_info['rowset'][$message_id];
@@ -196,7 +194,8 @@ function view_folder($id, $mode, $folder_id, $folder)
else
{
// Build Recipient List if in outbox/sentbox
- $address = array();
+ $address = $data = array();
+
if ($folder_id == PRIVMSGS_OUTBOX || $folder_id == PRIVMSGS_SENTBOX)
{
foreach ($folder_info['rowset'] as $message_id => $row)