From 59b82c72e18377d50138ad28953b1ce947608362 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 17 Sep 2013 12:56:30 +0200 Subject: [PATCH] fixing PHP notice when blocks table empty on blockstats --- public/templates/test/statistics/blocks/default.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/test/statistics/blocks/default.tpl b/public/templates/test/statistics/blocks/default.tpl index d0bbb186..b1cc4b4d 100644 --- a/public/templates/test/statistics/blocks/default.tpl +++ b/public/templates/test/statistics/blocks/default.tpl @@ -92,7 +92,7 @@ Totals {$totalexpectedshares|number_format} {$totalshares|number_format} - {($totalpercentage / $count)|number_format:"2"} + {if $count > 0}{($totalpercentage / $count)|number_format:"2"}{else}0{/if}