Skip to content

Commit

Permalink
Check key before accessing
Browse files Browse the repository at this point in the history
Else you get flooded with warnings when opening the admin settings

Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Oct 3, 2019
1 parent 7d2917b commit d1114ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AppConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getAppValue($key) {
*/
public function getAppValueArray($key) {
$value = $this->config->getAppValue($this->getAppNamespace($key), $key, []);
if (self::APP_SETTING_TYPES[$key] === 'array') {
if (isset(self::APP_SETTING_TYPES[$key]) && self::APP_SETTING_TYPES[$key] === 'array') {
$value = $value !== '' ? explode(',', $value) : [];
}
return $value;
Expand Down

0 comments on commit d1114ae

Please sign in to comment.