From dc839e499d2866eda2eb6c01ba5d3772d35954a7 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 15 Apr 2026 16:17:27 +0200 Subject: [PATCH] (cp d21b530cb) fixes #2369 avoid division by zero in case of STORAGE_TOTAL < 1kB --- admin/themes/default/template/intro.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/themes/default/template/intro.tpl b/admin/themes/default/template/intro.tpl index 28ba8a705..f07dcc58c 100644 --- a/admin/themes/default/template/intro.tpl +++ b/admin/themes/default/template/intro.tpl @@ -240,8 +240,8 @@ translate_type['{$type_to_translate}'] = "{$type_to_translate|translate}";
{foreach from=$STORAGE_CHART_DATA key=type item=details} - -

{round($details.total.filesize/$STORAGE_TOTAL*100)}%

+ +

{if $STORAGE_TOTAL > 0}{round($details.total.filesize/$STORAGE_TOTAL*100)}{else}0{/if}%

{/foreach}