From bf8cdbf47665d4e9d2aae6f54ebfed8b18a64b68 Mon Sep 17 00:00:00 2001 From: wdammak <26695620+wdammak@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:19:19 +0100 Subject: [PATCH] Fix Division by zero --- admin/themes/default/template/helpers/kpi/row.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/themes/default/template/helpers/kpi/row.tpl b/admin/themes/default/template/helpers/kpi/row.tpl index 2f634809a..fc481cbd3 100644 --- a/admin/themes/default/template/helpers/kpi/row.tpl +++ b/admin/themes/default/template/helpers/kpi/row.tpl @@ -26,6 +26,7 @@ {if $refresh}
{/if} + {if ($kpis|count) > 0}
{assign var='col' value=(int)(12 / $kpis|count)} {foreach from=$kpis item=i name=kpi} @@ -36,4 +37,5 @@
{$i}
{/foreach}
+ {/if}