Skip to content
Snippets Groups Projects
Commit 86d479cb authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

Use array_key_exists instead of isset, because the latter returns false if the...

Use array_key_exists instead of isset, because the latter returns false if the assigned value is null
parent 055a09e4
Branches
No related tags found
No related merge requests found
......@@ -119,9 +119,9 @@ class Configuration {
$cta = $this->getConfigTranslationArray();
foreach($config as $inputkey => $val) {
if(strpos($inputkey, '_') !== false && isset($cta[$inputkey])) {
if(strpos($inputkey, '_') !== false && array_key_exists($inputkey, $cta)) {
$key = $cta[$inputkey];
} elseif(isset($this->config[$inputkey])) {
} elseif(array_key_exists($inputkey, $this->config)) {
$key = $inputkey;
} else {
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment