From 449d2b5611f98589de3e29d6a24e1de45b7bc48f Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 28 Sep 2020 19:49:10 +0200 Subject: [PATCH 1/4] Update js.tpl PHP 7.2 & 7.3 --- admin/themes/default/template/controllers/modules/js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index acaba8393..b3dd0861d 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)}{$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} From 86c7040d13aaf3e2afe827cf8633d2386fc5ca45 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Wed, 14 Oct 2020 20:38:59 +0200 Subject: [PATCH 2/4] Update js.tpl --- admin/themes/default/template/controllers/modules/js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index b3dd0861d..bca0d89b3 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) && is_array($installed_modules)}{$installed_modules}{else}false{/if}; + var installed_modules = {if isset($installed_modules) && is_array($installed_modules) && count($installed_modules) > 0}{$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} From ce46be1e16588616292dd125db7fc96883106324 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 26 Oct 2020 09:58:17 +0100 Subject: [PATCH 3/4] Update js.tpl --- admin/themes/default/template/controllers/modules/js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index bca0d89b3..b3dd0861d 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) && is_array($installed_modules) && count($installed_modules) > 0}{$installed_modules}{else}false{/if}; + var installed_modules = {if isset($installed_modules) && is_array($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} From 3907cdc2045660ed6416451b77ccd0e51c311319 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Mon, 26 Oct 2020 15:07:54 +0100 Subject: [PATCH 4/4] Update js.tpl --- admin/themes/default/template/controllers/modules/js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/controllers/modules/js.tpl b/admin/themes/default/template/controllers/modules/js.tpl index b3dd0861d..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) && is_array($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}