mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixing a couple of typos introduced likely at the time of dml conversion.
This commit is contained in:
parent
e4d825f543
commit
585fb1f447
@ -609,7 +609,7 @@ function choice_get_participants($choiceid) {
|
||||
//Returns the users with data in one choice
|
||||
//(users with records in choice_responses, students)
|
||||
|
||||
global $CFG;
|
||||
global $DB;
|
||||
|
||||
//Get students
|
||||
$students = $DB->get_records_sql("SELECT DISTINCT u.id, u.id
|
||||
|
@ -423,7 +423,7 @@ function glossary_get_participants($glossaryid) {
|
||||
//Get students
|
||||
$students = $DB->get_records_sql("SELECT DISTINCT u.id, u.id
|
||||
FROM {user} u, {glossary_entries} g
|
||||
WHERE g.glossaryid = : AND u.id = g.userid", array($glossaryid));
|
||||
WHERE g.glossaryid = ? AND u.id = g.userid", array($glossaryid));
|
||||
|
||||
//Return students array (it contains an array of unique users)
|
||||
return $students;
|
||||
|
Loading…
x
Reference in New Issue
Block a user