Skip to content

Commit

Permalink
Merge pull request #46222 from nextcloud/fix/task-processing-api-cont…
Browse files Browse the repository at this point in the history
…roller/dont-use-plus
  • Loading branch information
skjnldsv authored Nov 6, 2024
2 parents d53fde8 + 224779c commit 452e4be
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 @@ -378,7 +378,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 @@ -390,14 +390,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 452e4be

Please sign in to comment.