[Pkg-owncloud-commits] [owncloud] 83/121: check if array index ocsid is set before accessing it

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:37 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 f82467f845f0b97719369013c8fc2d2bc8b3a87e
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Sun Aug 17 22:26:14 2014 +0200

    check if array index ocsid is set before accessing it
---
 lib/private/app.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/app.php b/lib/private/app.php
index e4b11f9..2887961 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -833,7 +833,8 @@ class OC_App {
 			foreach ($appList as $app) {
 				foreach ($remoteApps AS $key => $remote) {
 					if ($app['name'] === $remote['name'] ||
-						$app['ocsid'] ===  $remote['id']) {
+						(isset($app['ocsid']) &&
+						$app['ocsid'] ===  $remote['id'])) {
 						unset($remoteApps[$key]);
 					}
 				}

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