]> _ Git - cubeextranet.git/commitdiff
fix #2276 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 9 Oct 2018 16:47:52 +0000 (16:47 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 9 Oct 2018 16:47:52 +0000 (16:47 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index d20664fa2c6c5531537f2a8874311bce9f965641..5261e0920fbc1ebb4fb1fd7e82abae43fa347d91 100644 (file)
@@ -887,7 +887,9 @@ class wsHTML5Compiler
                $lang = $daoLang->selectById($this->book->lang);
                $langs = $daoLang->selectAll();
 
-               $traductions = (!is_countable($this->book->traductions) || !count($this->book->traductions)) ? $lang->traductions : $this->book->traductions;
+               $t=CubeIT_Util_Object::toArray($this->book->traductions);
+
+               $traductions = (!is_countable($t) || !count($t)) ? $lang->traductions : $t;
 
                $this->config->l10n = array();
                $this->config->l10n['default'] = $traductions;