diff --git a/workflow/engine/classes/model/Translation.php b/workflow/engine/classes/model/Translation.php index b4cc04ba0..3463fa736 100644 --- a/workflow/engine/classes/model/Translation.php +++ b/workflow/engine/classes/model/Translation.php @@ -237,7 +237,7 @@ class Translation extends BaseTranslation } $res['cacheFileMafe'] = $cacheFileMafe; - $res['languague'] = count($cacheFileMafe); + $res['languague'] = (is_array($cacheFileMafe) || $cacheFileMafe instanceof Countable) ? count($cacheFileMafe) : 0; $res['rowsMafeJS'] = count( $translation ); return $res; } catch (Exception $e) {