diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index acaba8393..ba8e36d1a 100644 --- a/admin/themes/default/template/controllers/modules/js.tpl +++ b/admin/themes/default/template/controllers/modules/js.tpl @@ -34,7 +34,7 @@ var currentIndexWithToken = '{$currentIndex|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}'; var dirNameCurrentIndex = '{$dirNameCurrentIndex}'; var ajaxCurrentIndex = '{$ajaxCurrentIndex}'; - var installed_modules = {if isset($installed_modules) && count($installed_modules)}{$installed_modules}{else}false{/if}; + var installed_modules = {if isset($installed_modules) && is_array($installed_modules) && count($installed_modules)}{$installed_modules}{else}false{/if}; var by = '{l s='by'}'; var confirmPreferencesSaved = '{l s='Preferences saved'}'; {if isset($smarty.get.anchor) && !isset($error_module)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''|replace:'\'':''|replace:'/':''}';{else}var anchor = '';{/if}