aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-25 14:17:57 +0200
committerJulien Veyssier <julien-nc@posteo.net>2023-08-02 12:37:35 +0200
commit2a3ef102f7527041609ad96bc59d6b21f42980d4 (patch)
tree2ca08e6288ff471de9f0c7664e990c25dd81c725 /apps/settings
parenta840e8c6e5a0d7b7c3a371776fd395976b2c2fdf (diff)
downloadnextcloud-server-2a3ef102f7527041609ad96bc59d6b21f42980d4.tar.gz
nextcloud-server-2a3ef102f7527041609ad96bc59d6b21f42980d4.zip
AI admin settings: Use config values in AI feature managers
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/lib/Settings/Admin/ArtificialIntelligence.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
index ad5425d8ded..2f36e4b0330 100644
--- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
+++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
@@ -112,7 +112,7 @@ class ArtificialIntelligence implements IDelegatedSettings {
$value = $defaultValue;
$json = $this->config->getAppValue('core', $key, '');
if ($json !== '') {
- $value = json_decode($json, JSON_OBJECT_AS_ARRAY);
+ $value = json_decode($json, true);
switch($key) {
case 'ai.textprocessing_provider_preferences':
// fill $value with $defaultValue values