Skip to content

Commit

Permalink
FIX: duplicate error check (#29433)
Browse files Browse the repository at this point in the history
we are checking if there is an error on previous line
  • Loading branch information
mc2rcanarslan authored Apr 24, 2024
1 parent 83629c5 commit a45b62b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions htdocs/projet/class/task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,9 @@ public function create($user, $notrigger = 0)

// Update extrafield
if (!$error) {
if (!$error) {
$result = $this->insertExtraFields();
if ($result < 0) {
$error++;
}
$result = $this->insertExtraFields();
if ($result < 0) {
$error++;
}
}

Expand Down

0 comments on commit a45b62b

Please sign in to comment.