From 76d058f4c802a6f67b0daced4c48229d49e1c1a6 Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Mon, 9 Dec 2024 08:31:18 +0100 Subject: 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 f24b1b73da4..c02a0665760 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -569,6 +569,9 @@ class Manager implements IManager { */ private function _getTaskTypeSettings(): array { $json = $this->config->getAppValue('core', 'ai.taskprocessing_type_preferences', ''); + if ($json === '') { + return []; + } return json_decode($json, true); } -- cgit v1.2.3