Skip to content

Commit

Permalink
Merge pull request #49110 from nextcloud/backport/46222/stable30
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Nov 8, 2024
2 parents 74239ef + 7a309e7 commit fcf11d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Controller/TaskProcessingApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private function extractFileIdsFromTask(Task $task): array {
/** @var int|list<int> $inputSlot */
$inputSlot = $task->getInput()[$key];
if (is_array($inputSlot)) {
$ids += $inputSlot;
$ids = array_merge($inputSlot, $ids);
} else {
$ids[] = $inputSlot;
}
Expand All @@ -392,14 +392,14 @@ private function extractFileIdsFromTask(Task $task): array {
/** @var int|list<int> $outputSlot */
$outputSlot = $task->getOutput()[$key];
if (is_array($outputSlot)) {
$ids += $outputSlot;
$ids = array_merge($outputSlot, $ids);
} else {
$ids[] = $outputSlot;
}
}
}
}
return array_values($ids);
return $ids;
}

/**
Expand Down

0 comments on commit fcf11d5

Please sign in to comment.