From 6e42792d891c3fdb58a2962211e90a5f1755fa46 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Mon, 9 Dec 2024 08:31:18 +0100 Subject: [PATCH] fix: show all types when no preferences saved Signed-off-by: Jana Peper --- lib/private/TaskProcessing/Manager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index bf72154061916..d23244dc85490 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -566,6 +566,9 @@ private function _getTaskTypes(): array { */ private function _getTaskTypeSettings(): array { $json = $this->config->getAppValue('core', 'ai.taskprocessing_type_preferences', ''); + if ($json === '') { + return []; + } return json_decode($json, true); }