From a79e8d33f12e8bf03d2a9999a4086af14c8fa0ac Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Nov 2015 00:43:35 +0100 Subject: [PATCH] FIX Bad meteo icon --- htdocs/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/index.php b/htdocs/index.php index 5926e4e374c..1c99fb0c647 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -432,14 +432,17 @@ foreach($dashboardlines as $tmp) } $rowspan = count($valid_dashboardlines); +// We calculate $totallate. Must be defined before start of next loop because it is show in first fetch on next loop foreach($valid_dashboardlines as $board) { if ($board->nbtodolate > 0) { $totallate += $board->nbtodolate; } +} - // Show dashboard - +// Show dashboard +foreach($valid_dashboardlines as $board) +{ $var=!$var; print ''.$board->img.''.$board->label.''; print ''.$board->nbtodo.'';