[Pkg-owncloud-commits] [owncloud] 07/223: use isset() instead of array_key_exists()

David Prévot taffit at moszumanska.debian.org
Sun Jun 22 01:53:58 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 19129b3db25cedb8c4439c3fe07f5817108a6dca
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Tue Jun 3 16:23:33 2014 +0200

    use isset() instead of array_key_exists()
---
 lib/private/installer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/installer.php b/lib/private/installer.php
index df8c015..bbb8bc5 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -168,7 +168,7 @@ class OC_Installer{
 		$appdata = OC_OCSClient::getApplication($app);
 		$download = OC_OCSClient::getApplicationDownload($app, 1);
 
-		if (array_key_exists('downloadlink', $download) && trim($download['downloadlink']) !== '') {
+		if (isset($download['downloadlink']) && trim($download['downloadlink']) !== '') {
 			$download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']);
 			$info = array(
 				'source' => 'http',

-- 
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