]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing a couple of typos introduced likely at the time of dml conversion.
authorjamiesensei <jamiesensei>
Fri, 15 Aug 2008 09:21:33 +0000 (09:21 +0000)
committerjamiesensei <jamiesensei>
Fri, 15 Aug 2008 09:21:33 +0000 (09:21 +0000)
mod/choice/lib.php
mod/glossary/lib.php

index f354f47ed8b7b0437702174866c351482b73ce0e..4225e9a159ab8e52c232f8346d14bfd0e739678f 100644 (file)
@@ -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
index 6e8b3a99339333bbc1eb36daec085398213e47dd..ae8a016ec03cf2a4afbc5a5ee2078ad2ae33efd7 100644 (file)
@@ -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;