From 86d479cb28bcfc4fe7c665930b7954dcbe579e79 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 21 Mar 2014 15:29:49 +0100 Subject: [PATCH] Use array_key_exists instead of isset, because the latter returns false if the assigned value is null --- apps/user_ldap/lib/configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/configuration.php b/apps/user_ldap/lib/configuration.php index 612a623e91..d42b1c0582 100644 --- a/apps/user_ldap/lib/configuration.php +++ b/apps/user_ldap/lib/configuration.php @@ -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;