Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 authored Jul 2, 2024
1 parent 7a73231 commit 0ad26e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/projet/class/project.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);
}
}

Expand Down

0 comments on commit 0ad26e6

Please sign in to comment.