[Pkg-owncloud-commits] [owncloud] 72/134: Use array_key_exists instead of isset, because the latter returns false if the assigned value is null

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 21:44:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 406747ab30c0b536c5e1c311228cd83cba88baf5
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Fri Mar 21 15:29:49 2014 +0100

    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 93f044e..ff9d778 100644
--- a/apps/user_ldap/lib/configuration.php
+++ b/apps/user_ldap/lib/configuration.php
@@ -115,9 +115,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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list