From: vincent@cubedesigners.com Date: Tue, 9 Oct 2018 16:47:52 +0000 (+0000) Subject: fix #2276 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=aa6bef04724c75579a8ac8b9696e2b4e7a2aeca5;p=cubeextranet.git fix #2276 @0.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index d20664fa2..5261e0920 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -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;