aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDominik Dröscher <dhn2@users.sourceforge.net>2007-01-09 14:32:34 +0000
committerDominik Dröscher <dhn2@users.sourceforge.net>2007-01-09 14:32:34 +0000
commit11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b (patch)
tree11600d6f8fb49d4d6e6a9b8c9d2337cae6622c11 /phpBB/includes
parent2b35b9d60d42c750485ba84b31818fad0b4e0a91 (diff)
downloadforums-11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b.tar
forums-11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b.tar.gz
forums-11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b.tar.bz2
forums-11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b.tar.xz
forums-11300e3cebbd3ddffbc8a76516eb7fff2fd84b0b.zip
Multiple and single recepients now work properly
git-svn-id: file:///svn/phpbb/trunk@6866 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index ccd61fede1..e81794b101 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -52,6 +52,7 @@ function compose_pm($id, $mode, $action)
|| $remove_u || $remove_g || $add_to || $add_bcc;
$action = ($delete && !$preview && !$refresh && $submit) ? 'delete' : $action;
+ $select_single = ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? false : true;
$error = array();
$current_time = time();
@@ -90,8 +91,8 @@ function compose_pm($id, $mode, $action)
'S_SHOW_PM_BOX' => true,
'S_ALLOW_MASS_PM' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? true : false,
'S_GROUP_OPTIONS' => ($config['allow_mass_pm'] && $auth->acl_get('u_masspm')) ? $group_options : '',
- 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&amp;form=post&amp;field=username&amp;select_single=true'),
- 'UA_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&form=post&field=username&select_single=true', true))
+ 'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=searchuser&amp;form=post&amp;field=username_list&amp;select_single=$select_single"),
+ 'UA_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=searchuser&form=post&field=username_list&select_single=$select_single", true))
);
}