From bd54d58d8af9e20f3771e6e3bcb44fd5ff79058f Mon Sep 17 00:00:00 2001 From: Justin Hunt Date: Sun, 13 Oct 2024 10:15:12 +0900 Subject: [PATCH] MDL-82797 question engine: gift import fix --- question/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/format.php b/question/format.php index bf3e25ad77a..ed6ccad2345 100644 --- a/question/format.php +++ b/question/format.php @@ -312,8 +312,8 @@ class qformat_default { // function to handle this question foreach (question_bank::get_all_qtypes() as $qtype) { if (method_exists($qtype, $methodname)) { - if ($question = $qtype->$methodname($data, $question, $this, $extra)) { - return $question; + if ($importedquestion = $qtype->$methodname($data, $question, $this, $extra)) { + return $importedquestion; } } }