// php warning

This commit is contained in:
rGaillard
2013-12-05 11:26:26 +01:00
parent a82919b023
commit acd0bbc366
+3 -1
View File
@@ -235,7 +235,9 @@ class Dashgoals extends Module
$fullfilment = round($value / $month_goal, 2);
// Base rate is essential here : it determines the value of the goal compared to the "100%" of the chart legend
$base_rate = $month_goal / $average_goal;
$base_rate = 0;
if ($average_goal && $month_goal)
$base_rate = $month_goal / $average_goal;
// Fullfilment of 1 means that we performed exactly anticipated
if ($fullfilment == 1)