diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-08-17 22:26:14 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-08-17 22:26:14 +0200 |
commit | 7347174636fe99ca3e0adeea6dc98438b1ab52bd (patch) | |
tree | 2fcd63595c705f0a0a728131eab890cde5595750 /lib/private/app.php | |
parent | 4c79d34980a6e21ee9942f7ec41e604509fc3062 (diff) | |
download | nextcloud-server-7347174636fe99ca3e0adeea6dc98438b1ab52bd.tar.gz nextcloud-server-7347174636fe99ca3e0adeea6dc98438b1ab52bd.zip |
check if array index ocsid is set before accessing it
Diffstat (limited to 'lib/private/app.php')
-rw-r--r-- | lib/private/app.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index e4b11f982dc..2887961754c 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]); } } |