From 585fb1f447c64f61b5576f73bdb06efa309e8192 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Fri, 15 Aug 2008 09:21:33 +0000 Subject: [PATCH] Fixing a couple of typos introduced likely at the time of dml conversion. --- mod/choice/lib.php | 2 +- mod/glossary/lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index f354f47ed8b..4225e9a159a 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -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 diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 6e8b3a99339..ae8a016ec03 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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;