]> git.mjollnir.org Git - moodle.git/commitdiff
Remove spurious characters from some SQL statements.
authortjhunt <tjhunt>
Tue, 25 Sep 2007 14:39:42 +0000 (14:39 +0000)
committertjhunt <tjhunt>
Tue, 25 Sep 2007 14:39:42 +0000 (14:39 +0000)
mod/quiz/backuplib.php

index 2eeda2f29b7e7b9ddbf549b10b2fbfe7a25666d2..a50e0b7e6dbd9a2421584564e878f8145843b936 100644 (file)
@@ -51,9 +51,9 @@
         // then, all categories from this course's modules' contexts.
         // using 'dummykeyname' in sql because otherwise get_records_sql_menu returns an error
         // if two key names are the same.
-        $cmcontexts = get_records_sql_menu("SELECT c.id, c.id AS dummykeyname FROM `{$CFG->prefix}modules` `mod`,
-                                                        `{$CFG->prefix}course_modules` `cm`,
-                                                        `{$CFG->prefix}context` `c`
+        $cmcontexts = get_records_sql_menu("SELECT c.id, c.id AS dummykeyname FROM {$CFG->prefix}modules mod,
+                                                        {$CFG->prefix}course_modules cm,
+                                                        {$CFG->prefix}context c
                                WHERE mod.name = 'quiz' AND mod.id = cm.module AND cm.id = c.instanceid
                                     AND c.contextlevel = ".CONTEXT_MODULE." AND cm.course = $course");
         if ($cmcontexts){