Commit 1c70c15f authored by Nigel McNie's avatar Nigel McNie
Browse files

Correct an obviously wrong $SESSION method call.

parent 652f930f
......@@ -380,7 +380,7 @@ function addmember_submit(Pieform $form, $values) {
$SESSION->add_ok_msg(get_string('useradded', 'group'));
}
catch (SQLException $e) {
$SESSION->ad_ok_msg(get_string('adduserfailed', 'group'));
$SESSION->add_error_msg(get_string('adduserfailed', 'group'));
}
redirect('/user/view.php?id=' . $userid);
}
......
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