]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17275 fixed DML syntax
authorskodak <skodak>
Tue, 9 Dec 2008 23:46:03 +0000 (23:46 +0000)
committerskodak <skodak>
Tue, 9 Dec 2008 23:46:03 +0000 (23:46 +0000)
mod/quiz/editlib.php

index 56e38544112359384c23ca1d4f8feb5fbf6bf5b1..6c3a65e5aef6e6e48fab36d84a1ae18d1d3df9a5 100644 (file)
@@ -1064,11 +1064,11 @@ function quiz_question_showbank($tabname, $contexts, $pageurl, $cm,
                 $key = $matches[1];
                 $questionlist .= $key.',';
                 question_require_capability_on($key, 'edit');
-                if (record_exists('quiz_question_instances', 'question', $key)) {
+                if ($DB->record_exists('quiz_question_instances', array('question'=>$key))) {
                     $questionnames .= '* ';
                     $inuse = true;
                 }
-                $questionnames .= get_field('question', 'name', 'id', $key).
+                $questionnames .= $DB->get_field('question', 'name', array('id'=>$key)).
                         '<br />';
             }
         }