diff options
author | 2007-07-27 17:01:37 +0000 | |
---|---|---|
committer | 2007-07-27 17:01:37 +0000 | |
commit | 92c25a3e6c99bb071710b2f5dc5939262924233c (patch) | |
tree | 8871f65ac15eb1feb05b6e2fc3f07871da3b0fe8 /phpBB/includes/ucp/ucp_pm_viewfolder.php | |
parent | #13816 (diff) | |
download | phpbb-92c25a3e6c99bb071710b2f5dc5939262924233c.tar.gz phpbb-92c25a3e6c99bb071710b2f5dc5939262924233c.tar.bz2 phpbb-92c25a3e6c99bb071710b2f5dc5939262924233c.zip |
#13791 - I hope this works :D
git-svn-id: file:///svn/phpbb/trunk@7960 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_viewfolder.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_viewfolder.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php index be79b522ef..79b663a39d 100644 --- a/phpBB/includes/ucp/ucp_pm_viewfolder.php +++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php @@ -65,18 +65,20 @@ function view_folder($id, $mode, $folder_id, $folder) // We do the folder moving options here too, for template authors to use... $s_folder_move_options = ''; - foreach ($folder as $f_id => $folder_ary) + if ($folder_id != PRIVMSGS_NO_BOX && $folder_id != PRIVMSGS_OUTBOX) { - if ($f_id == PRIVMSGS_OUTBOX || $f_id == PRIVMSGS_SENTBOX || $f_id == $folder_id) + foreach ($folder as $f_id => $folder_ary) { - continue; - } + if ($f_id == PRIVMSGS_OUTBOX || $f_id == PRIVMSGS_SENTBOX || $f_id == $folder_id) + { + continue; + } - $s_folder_move_options .= '<option' . (($f_id != PRIVMSGS_INBOX) ? ' class="sep"' : '') . ' value="' . $f_id . '">'; - $s_folder_move_options .= sprintf($user->lang['MOVE_MARKED_TO_FOLDER'], $folder_ary['folder_name']); - $s_folder_move_options .= (($folder_ary['unread_messages']) ? ' [' . $folder_ary['unread_messages'] . '] ' : '') . '</option>'; + $s_folder_move_options .= '<option' . (($f_id != PRIVMSGS_INBOX) ? ' class="sep"' : '') . ' value="' . $f_id . '">'; + $s_folder_move_options .= sprintf($user->lang['MOVE_MARKED_TO_FOLDER'], $folder_ary['folder_name']); + $s_folder_move_options .= (($folder_ary['unread_messages']) ? ' [' . $folder_ary['unread_messages'] . '] ' : '') . '</option>'; + } } - $friend = $foe = array(); // Get friends and foes |