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
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-17 08:51:24 +0300
committerJulius Härtl <jus@bitgrid.net>2020-09-17 08:51:24 +0300
commit1a4b330139763bb5b9c386d7fb6a07d18a36fbaa (patch)
tree44f4d76cbd050123dfa01bfa22418a63898711b0 /lib
parent3874a302e655e5ca4ecfb5dfb29db5c6444dc0e7 (diff)
Do not use isset for checking the class constant
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-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);
}