Commit 4abe3d25 authored by David Monllaó's avatar David Monllaó
Browse files

MDL-63408 messaging: Remove duplicated field

parent ccd8a102
......@@ -1918,8 +1918,7 @@ class api {
// Be sure we are not trying to add a non existing user to the conversation. Work only with existing users.
list($useridcondition, $params) = $DB->get_in_or_equal($userids, SQL_PARAMS_NAMED);
$existingusers = array_keys($DB->get_records_select_menu('user',
"id $useridcondition", $params, 'id', 'id, id'));
$existingusers = $DB->get_fieldset_select('user', 'id', "id $useridcondition", $params);
// Be sure we are not adding a user is already member of the conversation. Take all the members.
$memberuserids = array_values($DB->get_records_menu(
......
Supports Markdown
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