]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11517 reserved word MOD used in table alias in questions backup code
authorskodak <skodak>
Sat, 29 Sep 2007 16:26:13 +0000 (16:26 +0000)
committerskodak <skodak>
Sat, 29 Sep 2007 16:26:13 +0000 (16:26 +0000)
mod/quiz/backuplib.php

index a50e0b7e6dbd9a2421584564e878f8145843b936..202bb166d1ca4959167a0a397829b776ef993e9f 100644 (file)
         // 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,
+        $cmcontexts = get_records_sql_menu("SELECT c.id, c.id AS dummykeyname FROM {$CFG->prefix}modules m,
                                                         {$CFG->prefix}course_modules cm,
                                                         {$CFG->prefix}context c
-                               WHERE mod.name = 'quiz' AND mod.id = cm.module AND cm.id = c.instanceid
+                               WHERE m.name = 'quiz' AND m.id = cm.module AND cm.id = c.instanceid
                                     AND c.contextlevel = ".CONTEXT_MODULE." AND cm.course = $course");
         if ($cmcontexts){
             $status = $status && execute_sql("INSERT INTO {$CFG->prefix}backup_ids