saimod todo division by zero fix

This commit is contained in:
Ulf Gebhardt 2015-06-10 20:47:32 +02:00
parent 5125d09012
commit 7563357a13

View File

@ -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);
} }
} }