]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use array_key_exists instead of isset, because the latter returns false if the assign...
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 21 Mar 2014 14:29:49 +0000 (15:29 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 21 Mar 2014 14:29:49 +0000 (15:29 +0100)
apps/user_ldap/lib/configuration.php

index 612a623e910eb178c7b751a58b31b9b0c8283311..d42b1c05820ce8b85092034853057610e6c009a2 100644 (file)
@@ -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;