saimod todo division by zero fix
This commit is contained in:
parent
5125d09012
commit
7563357a13
@ -11,6 +11,6 @@ class todo_stats_data {
|
|||||||
$this->open = $all-$closed;
|
$this->open = $all-$closed;
|
||||||
$this->closed = $closed;
|
$this->closed = $closed;
|
||||||
$this->all = $all;
|
$this->all = $all;
|
||||||
$this->perc = round($this->closed / $this->all * 100,2);
|
$this->perc = round($this->closed / ($this->all == 0 ? 1 : $this->all) * 100,2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user