From b7d39b610b4360e23659d2e1908d36416fd4fc89 Mon Sep 17 00:00:00 2001 From: ATM John BOTELLA Date: Sat, 30 Nov 2019 10:08:55 +0100 Subject: [PATCH] Fix divided by zero --- htdocs/core/lib/project.lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index 58a46aef0ec..9a3f6ce7f94 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -2088,14 +2088,15 @@ function getTaskProgressView($task, $label = true, $progressNumber = true, $hide } - $out .= ''; $out .= '
'; $diffval = doubleval($task->progress) - doubleval($progressCalculated); if ($diffval >= 0) { // good $out .= '
'; - $out .= '
'; + if(!empty($task->progress)) { + $out .= '
'; + } $out .= '
'; } else