aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-11-30 17:48:06 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-11-30 17:48:06 +0000
commit1bf18e23edb13b2d3014c4509e4d1b15ddc274fe (patch)
treedfbf1798248969f0ac79842d4f0dc449a36f6cd2 /phpBB/includes/functions_privmsgs.php
parentba6f40ce2542b87c7110dd9e38e4c0386b22da81 (diff)
downloadforums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.gz
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.bz2
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.tar.xz
forums-1bf18e23edb13b2d3014c4509e4d1b15ddc274fe.zip
- added acp_language (language pack management)
- minor adjustments to cope with PHP5.x git-svn-id: file:///svn/phpbb/trunk@5315 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 7283a72e37..dffa4717c5 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -126,7 +126,9 @@ function get_folder($user_id, &$folder, $folder_id = false)
$db->sql_freeresult($result);
// Make sure the default boxes are defined
- foreach (array(PRIVMSGS_INBOX, PRIVMSGS_OUTBOX, PRIVMSGS_SENTBOX) as $default_folder)
+ $available_folder = array(PRIVMSGS_INBOX, PRIVMSGS_OUTBOX, PRIVMSGS_SENTBOX);
+
+ foreach ($available_folder as $default_folder)
{
if (!isset($num_messages[$default_folder]))
{
@@ -904,8 +906,9 @@ function rebuild_header($check_ary)
{
${$type}[] = (int) $match[2][$id];
}
-
- foreach (array('u', 'g') as $type)
+
+ $_types = array('u', 'g');
+ foreach ($_types as $type)
{
if (sizeof($$type))
{
@@ -1098,7 +1101,8 @@ function submit_pm($mode, $subject, &$data, $update_message, $put_in_outbox = tr
{
// Build Recipient List
// u|g => array($user_id => 'to'|'bcc')
- foreach (array('u', 'g') as $ug_type)
+ $_types = array('u', 'g');
+ foreach ($_types as $ug_type)
{
if (isset($data['address_list'][$ug_type]) && sizeof($data['address_list'][$ug_type]))
{