From 0ad26e678b15ee17bbe45fdb6dc0d4a980cb931a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 2 Jul 2024 18:10:56 +0200 Subject: [PATCH] fix phpstan --- htdocs/projet/class/project.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index e153bbf56ff26..48b432d677c08 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -1169,10 +1169,10 @@ public function getElementCount($type, $tablename, $projectkey = 'fk_projet') } /** - * Delete tasks with no children first, then task with children recursively + * Delete tasks with no children first, then task with children recursively * - * @param User $user User - * @return int Return integer <0 if KO, 1 if OK + * @param User $user User + * @return int Return integer <0 if KO, 1 if OK */ public function deleteTasks($user) { @@ -1193,7 +1193,7 @@ public function deleteTasks($user) $this->getLinesArray($user); if ($deleted && count($this->lines) < $countTasks) { if (count($this->lines)) { - $this->deleteTasks($this->lines); + $this->deleteTasks($user); } }