diff options
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 3 | ||||
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_viewfolder.php | 6 | ||||
-rw-r--r-- | phpBB/includes/ucp/ucp_prefs.php | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 1c14f917d5..2a05db89a1 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -666,7 +666,8 @@ function compose_pm($id, $mode, $action) } $u = $g = array(); - foreach (array('u', 'g') as $type) + $_types = array('u', 'g'); + foreach ($_types as $type) { if (isset($result[$type]) && $result[$type]) { diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php index c8a2ce29db..1b97f64ff1 100644 --- a/phpBB/includes/ucp/ucp_pm_viewfolder.php +++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php @@ -74,7 +74,8 @@ function view_folder($id, $mode, $folder_id, $folder, $type) foreach ($folder_info['rowset'] as $message_id => $row) { $address[$message_id] = rebuild_header(array('to' => $row['to_address'], 'bcc' => $row['bcc_address'])); - foreach (array('u', 'g') as $save) + $_save = array('u', 'g'); + foreach ($_save as $save) { if (isset($address[$message_id][$save]) && sizeof($address[$message_id][$save])) { @@ -86,7 +87,8 @@ function view_folder($id, $mode, $folder_id, $folder, $type) } } - foreach (array('u', 'g') as $ug_type) + $_types = array('u', 'g'); + foreach ($_types as $ug_type) { if (isset($recipient_list[$ug_type]) && sizeof($recipient_list[$ug_type])) { diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index 8d59d04bd7..ae8f143817 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -279,7 +279,8 @@ class ucp_prefs $sort_by_post_text = array('a' => $user->lang['AUTHOR'], 't' => $user->lang['POST_TIME'], 's' => $user->lang['SUBJECT']); $sort_by_post_sql = array('a' => 'u.username', 't' => 'p.post_id', 's' => 'p.post_subject'); - foreach (array('topic', 'post') as $sort_option) + $_options = array('topic', 'post'); + foreach ($_options as $sort_option) { ${'s_limit_' . $sort_option . '_days'} = '<select name="' . $sort_option . '_st">'; foreach (${'limit_' . $sort_option . '_days'} as $day => $text) |