// php warning
This commit is contained in:
1 parent
a82919b023
commit
acd0bbc366
1 file changed
+2
@@ -235,6 +235,8 @@ class Dashgoals extends Module
|
|||||||
$fullfilment = round($value / $month_goal, 2);
|
$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 is essential here : it determines the value of the goal compared to the "100%" of the chart legend
|
||||||
|
$base_rate = 0;
|
||||||
|
if ($average_goal && $month_goal)
|
||||||
$base_rate = $month_goal / $average_goal;
|
$base_rate = $month_goal / $average_goal;
|
||||||
|
|
||||||
// Fullfilment of 1 means that we performed exactly anticipated
|
// Fullfilment of 1 means that we performed exactly anticipated
|
||||||
|
|||||||
Reference in new issue
Block a user