summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-03-21 15:29:49 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-03-21 15:29:49 +0100
commit86d479cb28bcfc4fe7c665930b7954dcbe579e79 (patch)
treef3b19e4d3e874b1bcc0ade17eef0ce2def5002ce /apps
parent055a09e487c2c6fedaa213a11434f9a985e12423 (diff)
downloadnextcloud-server-86d479cb28bcfc4fe7c665930b7954dcbe579e79.tar.gz
nextcloud-server-86d479cb28bcfc4fe7c665930b7954dcbe579e79.zip
Use array_key_exists instead of isset, because the latter returns false if the assigned value is null
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/configuration.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/configuration.php b/apps/user_ldap/lib/configuration.php
index 612a623e910..d42b1c05820 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;