Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/SettingsController.php')
-rw-r--r--lib/Controller/SettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php
index ef3e2a04..707c9a81 100644
--- a/lib/Controller/SettingsController.php
+++ b/lib/Controller/SettingsController.php
@@ -236,7 +236,7 @@ class SettingsController extends Controller{
if (is_bool($value)) {
$parsedValue = $value ? 'yes' : 'no';
}
- $appSettingsType = isset(AppConfig::APP_SETTING_TYPES[$fullKey]) ? AppConfig::APP_SETTING_TYPES[$fullKey] : 'string';
+ $appSettingsType = array_key_exists($fullKey, AppConfig::APP_SETTING_TYPES) ? AppConfig::APP_SETTING_TYPES[$fullKey] : 'string';
if ($appSettingsType === 'array') {
$parsedValue = implode(',', $value);
}