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.'';