From 838958a8884a67621147459ef963369f15cb5f88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Jul 2017 20:32:49 +0200 Subject: [PATCH] Fix count show 0 if empty --- htdocs/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index 90c014b0e99..187273ef2b4 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -333,7 +333,7 @@ if (empty($user->societe_id)) $boxstat.=''; $boxstat.='
'; $boxstat.=''.img_object("",$icons[$key]).' '.$text.'
'; - $boxstat.=''.$board->nb[$val].''; + $boxstat.=''.($board->nb[$val]?$board->nb[$val]:0).''; $boxstat.='
'; $boxstat.='
'; }