From eecfb5fb43c66b47fc9af30abb1c71fafba585ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 15 Jun 2024 15:07:15 +0200 Subject: [PATCH] fix phpstan (#30032) --- htdocs/projet/tasks/list.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index 419d7f35ec1..85b6c5a03a7 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -5,7 +5,8 @@ * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2021 Alexandre Spangaro * Copyright (C) 2023 Gauthier VERDOL - * Copyright (C) 2024 MDW + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1351,7 +1352,7 @@ while ($i < $imaxinloop) { if (!$i) { $totalarray['pos'][$totalarray['nbfield']] = 't.planned_workload'; } - if (!isset($totalarray['val']['planned_workload'])) { + if (!isset($totalarray['val']['t.planned_workload'])) { $totalarray['val']['t.planned_workload'] = 0; } $totalarray['val']['t.planned_workload'] += $obj->planned_workload;