From 815262cab6832e1d0e2f8c68780d963f3dd516de Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 16 Jan 2009 04:23:21 +0000 Subject: [PATCH] questiontypes: MDL-17800 Fix merge error. --- question/type/questiontype.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 3548835062..8dbe88b592 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -1661,13 +1661,14 @@ class default_questiontype { * This is used in question/backuplib.php */ function backup($bf,$preferences,$question,$level=6) { + global $DB; $status = true; $extraquestionfields = $this->extra_question_fields(); if (is_array($extraquestionfields)) { $questionextensiontable = array_shift($extraquestionfields); - $record = get_record($questionextensiontable, $this->questionid_column_name(), $question); + $record = $DB->get_record($questionextensiontable, array($this->questionid_column_name() => $question)); if ($record) { $tagname = strtoupper($this->name()); $status = $status && fwrite($bf, start_tag($tagname, $level, true)); -- 2.39.5