From: Vincent Vanwaelscappel Date: Wed, 3 Sep 2025 15:20:28 +0000 (+0200) Subject: wait #7709 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e46c7f84edc814a6c7d892e0ae4b2e3a4ffe9cd5;p=fluidbook-toolbox.git wait #7709 @0:05 --- diff --git a/app/Models/Quiz.php b/app/Models/Quiz.php index a08445353..ea27bd2c8 100644 --- a/app/Models/Quiz.php +++ b/app/Models/Quiz.php @@ -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'; }