From 5ed5d1e274ec99d2dc65ab952eb77480f51b5e94 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 29 Sep 2023 14:15:42 +0200 Subject: [PATCH] wait #6248 @0.25 --- app/Elearning/QuizCompiler/L10N.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Elearning/QuizCompiler/L10N.php b/app/Elearning/QuizCompiler/L10N.php index 5092e4343..c44059162 100644 --- a/app/Elearning/QuizCompiler/L10N.php +++ b/app/Elearning/QuizCompiler/L10N.php @@ -14,6 +14,9 @@ trait L10N protected function getTranslations() { $res = ElearningTranslate::getLocaleTranslations($this->data->translation, true); - return array_merge($res, $this->data->translations); + if (is_array($this->data->translations)) { + $res = array_merge($res, $this->data->translations); + } + return $res; } } -- 2.39.5