mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-17275 fixed DML syntax
This commit is contained in:
parent
2c4eb0064b
commit
ecb45a9e40
@ -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 />';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user