From ab8078a430808e557dc4ad3c747afebe070642f6 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 2 Oct 2024 08:38:20 +0200 Subject: fix(TaskProcessing\Manager): Don't provoke PHP notice in setTaskResult Signed-off-by: Marcel Klehr --- lib/private/TaskProcessing/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 988b34491c1..e0128dbaad2 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -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); } } -- cgit v1.2.3