mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #48513 from nextcloud/fix/taskprocessing-manager/php-notice
fix(TaskProcessing\Manager): Don't provoke PHP notice in setTaskResult
This commit is contained in:
commit
06bfb20f2a
1 changed files with 1 additions and 1 deletions
|
|
@ -921,7 +921,7 @@ class Manager implements IManager {
|
|||
if ($value instanceof Node) {
|
||||
$output[$key] = $value->getId();
|
||||
}
|
||||
if (is_array($value) && $value[0] instanceof Node) {
|
||||
if (is_array($value) && isset($value[0]) && $value[0] instanceof Node) {
|
||||
$output[$key] = array_map(fn ($node) => $node->getId(), $value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue