]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6248 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 29 Sep 2023 12:15:42 +0000 (14:15 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 29 Sep 2023 12:15:42 +0000 (14:15 +0200)
app/Elearning/QuizCompiler/L10N.php

index 5092e434329226c5e5bf16eed161a56aa45eea5a..c440591622623fc598be3fc7e9709bf08dfe7df2 100644 (file)
@@ -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;
     }
 }