aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TaskProcessing/Manager.php
diff options
context:
space:
mode:
authorJana Peper <jana.peper@nextcloud.com>2024-12-09 08:31:18 +0100
committerjanepie <49834966+janepie@users.noreply.github.com>2024-12-18 18:32:34 +0100
commit76d058f4c802a6f67b0daced4c48229d49e1c1a6 (patch)
treeb5b2395a1bcae4e52af11afdb500ce76a54b4856 /lib/private/TaskProcessing/Manager.php
parent8cac92665d78304aaeb5e9b521f371960175d3df (diff)
downloadnextcloud-server-76d058f4c802a6f67b0daced4c48229d49e1c1a6.tar.gz
nextcloud-server-76d058f4c802a6f67b0daced4c48229d49e1c1a6.zip
fix: show all types when no preferences saved
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Diffstat (limited to 'lib/private/TaskProcessing/Manager.php')
-rw-r--r--lib/private/TaskProcessing/Manager.php3
1 files changed, 3 insertions, 0 deletions
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);
}