Commit fdc53b03 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixing send message so it goes to the intened user, rather than the logged in user

parent d9c68413
......@@ -65,7 +65,8 @@ $smarty->display('user/denyrequest.tpl');
function sendmessage_submit(Pieform $form, $values) {
global $USER, $SESSION, $id;
send_user_message($USER, $values['message']);
$user = get_record('usr', 'id', $id);
send_user_message($user, $values['message']);
$SESSION->add_ok_msg(get_string('messagesent', 'group'));
switch (param_alpha('returnto', 'myfriends')) {
case 'find':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment