From 2b9351b2272119d3d9a4ba62cddc10ee17e50feb Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sun, 6 Sep 2015 08:51:25 +0200 Subject: [PATCH] fixed todo assigned 1% bug instead of 100% --- sai/modules/saimod_sys_todo/todo_stats_data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sai/modules/saimod_sys_todo/todo_stats_data.php b/sai/modules/saimod_sys_todo/todo_stats_data.php index cc4747a..5233eb7 100644 --- a/sai/modules/saimod_sys_todo/todo_stats_data.php +++ b/sai/modules/saimod_sys_todo/todo_stats_data.php @@ -11,6 +11,6 @@ class todo_stats_data { $this->open = $all-$closed; $this->closed = $closed; $this->all = $all; - $this->perc = $this->all == 0 ? 1 : sprintf("%.2f", $this->closed / $this->all * 100); + $this->perc = $this->all == 0 ? sprintf("%.2f",100) : sprintf("%.2f", $this->closed / $this->all * 100); } }