From: Vincent Vanwaelscappel Date: Fri, 29 Sep 2023 12:15:42 +0000 (+0200) Subject: wait #6248 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5ed5d1e274ec99d2dc65ab952eb77480f51b5e94;p=fluidbook-toolbox.git wait #6248 @0.25 --- 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; } }