diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-17 08:51:24 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-09-17 08:51:24 +0300 |
commit | 1a4b330139763bb5b9c386d7fb6a07d18a36fbaa (patch) | |
tree | 44f4d76cbd050123dfa01bfa22418a63898711b0 | |
parent | 3874a302e655e5ca4ecfb5dfb29db5c6444dc0e7 (diff) |
Do not use isset for checking the class constant
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | lib/Controller/SettingsController.php | 2 |
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); } |