Use array_key_exists instead of isset, because the latter returns false if the assigned value is null
This commit is contained in:
parent
055a09e487
commit
86d479cb28
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue