From aa6bef04724c75579a8ac8b9696e2b4e7a2aeca5 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 9 Oct 2018 16:47:52 +0000 Subject: [PATCH] fix #2276 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5