From e46c7f84edc814a6c7d892e0ae4b2e3a4ffe9cd5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 3 Sep 2025 17:20:28 +0200 Subject: [PATCH] wait #7709 @0:05 --- app/Models/Quiz.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } -- 2.39.5