diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-10-02 08:38:20 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-02 07:57:16 +0000 |
commit | ab8078a430808e557dc4ad3c747afebe070642f6 (patch) | |
tree | d4351545b693b6f37e4c13916a632303c9329a42 /lib | |
parent | fcf45b6869e35c3ebdada598318fe7de0d5d4e4a (diff) | |
download | nextcloud-server-ab8078a430808e557dc4ad3c747afebe070642f6.tar.gz nextcloud-server-ab8078a430808e557dc4ad3c747afebe070642f6.zip |
fix(TaskProcessing\Manager): Don't provoke PHP notice in setTaskResultbackport/48513/stable30
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TaskProcessing/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |