]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7709 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Sep 2025 15:20:28 +0000 (17:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 3 Sep 2025 15:20:28 +0000 (17:20 +0200)
app/Models/Quiz.php

index a08445353497340613aa382f8448b3490df5505c..ea27bd2c8406990eaa2f794d17d81b3e69317746 100644 (file)
@@ -342,7 +342,7 @@ class Quiz extends ToolboxModel
         // Fix boolean
         $booleans = ['multiple' => false, 'required' => true, 'count_for_score' => true];
         foreach ($d['questions'] as $qn => $q) {
-            $d['questions'][$qn]['question_html'] = Markdown::convert($q['question'])->getContent();
+            $d['questions'][$qn]['question_html'] = Markdown::convert($q['question']??'')->getContent();
             if (!isset($q['type']) || null === $q['type'] || !$q['type']) {
                 $d['questions'][$qn]['type'] = 'multiple';
             }