Skip to content

Commit

Permalink
Merge pull request #502 from wdammak/patch-45
Browse files Browse the repository at this point in the history
Fix Division by zero
  • Loading branch information
rohit053 authored Jan 13, 2023
2 parents c8bdac6 + bf8cdbf commit 1236054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/themes/default/template/helpers/kpi/row.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
{if $refresh}
<div class="kpi-refresh"><button class="close refresh" type="button" onclick="refresh_kpis();"><i class="process-icon-refresh" style="font-size:1em"></i></button></div>
{/if}
{if ($kpis|count) > 0}
<div class="row">
{assign var='col' value=(int)(12 / $kpis|count)}
{foreach from=$kpis item=i name=kpi}
Expand All @@ -36,4 +37,5 @@
<div class="col-sm-6 col-lg-{$col}">{$i}</div>
{/foreach}
</div>
{/if}
</div>

0 comments on commit 1236054

Please sign in to comment.