aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/Controller/TaskProcessingApiController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php
index 383a6d7a31a..0128dc9ffc0 100644
--- a/core/Controller/TaskProcessingApiController.php
+++ b/core/Controller/TaskProcessingApiController.php
@@ -285,7 +285,7 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {
/** @var int|list<int> $inputSlot */
$inputSlot = $task->getInput()[$key];
if (is_array($inputSlot)) {
- $ids += $inputSlot;
+ $ids = array_merge($inputSlot, $ids);
} else {
$ids[] = $inputSlot;
}
@@ -297,14 +297,14 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController {
/** @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;
}
/**