MDL-17275 fixed DML syntax

This commit is contained in:
skodak 2008-12-09 23:46:03 +00:00
parent 2c4eb0064b
commit ecb45a9e40

View 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 />';
}
}