From ecb45a9e40b2e822e3ad3b06ba6500ae1776b9f8 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 9 Dec 2008 23:46:03 +0000 Subject: [PATCH] MDL-17275 fixed DML syntax --- mod/quiz/editlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 56e3854411..6c3a65e5ae 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -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)). '
'; } } -- 2.39.5