fix warning

This commit is contained in:
Frédéric FRANCE 2021-06-03 08:33:44 +02:00 committed by GitHub
parent da7d821a3e
commit ef032f9fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2693,6 +2693,7 @@ function getTaskProgressView($task, $label = true, $progressNumber = true, $hide
// define progress color according to time spend vs workload
$progressBarClass = 'progress-bar-info';
$progressCalculated = 0;
if ($task->planned_workload) {
$progressCalculated = round(100 * floatval($task->duration_effective) / floatval($task->planned_workload), 2);