diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-10-02 08:38:20 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-10-02 08:38:20 +0200 |
commit | d2df0f42f163cba6c7a9ffc203ca124f65b9d783 (patch) | |
tree | 122901a3bc4b9c12d554494c9662dccc2f41c3ce /lib/private/TaskProcessing/Manager.php | |
parent | 17cb6a81fd2e8c1f51e1014635a7630bc81a89cb (diff) | |
download | nextcloud-server-d2df0f42f163cba6c7a9ffc203ca124f65b9d783.tar.gz nextcloud-server-d2df0f42f163cba6c7a9ffc203ca124f65b9d783.zip |
fix(TaskProcessing\Manager): Don't provoke PHP notice in setTaskResultfix/taskprocessing-manager/php-notice
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TaskProcessing/Manager.php')
-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 36089f50f7f..4e9668021ad 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); } } |