Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
4abe3d25
Commit
4abe3d25
authored
Oct 23, 2018
by
David Monllaó
Browse files
MDL-63408 messaging: Remove duplicated field
parent
ccd8a102
Changes
1
Hide whitespace changes
Inline
Side-by-side
message/classes/api.php
View file @
4abe3d25
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment