]> git.mjollnir.org Git - moodle.git/commitdiff
Added empty array into question object for multiplier field in numeric questions
authorthepurpleblob <thepurpleblob>
Mon, 24 Jan 2005 15:45:20 +0000 (15:45 +0000)
committerthepurpleblob <thepurpleblob>
Mon, 24 Jan 2005 15:45:20 +0000 (15:45 +0000)
Stops a bunch of warnings when quiz is imported

mod/quiz/format/gift/format.php

index c598e7af409372039d373b423d9623ebd79ebdb1..aa9676cf8163c8cf0271bd4bf6a9d3de73a009c9 100755 (executable)
@@ -418,6 +418,7 @@ class quiz_file_format extends quiz_default_format {
 
                 $question->defaultgrade = 1;
                 $question->image = "";   // No images with this format
+                $question->multiplier = array(); // no numeric multipliers with GIFT
                 return $question;
                 break;