Skip to content
Snippets Groups Projects
Commit 62e06cb0 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #10472 from owncloud/fix_undefined_index_ocsid

check if array index ocsid is set before accessing it
parents c933848c 73471746
No related branches found
No related tags found
No related merge requests found
...@@ -833,7 +833,8 @@ class OC_App { ...@@ -833,7 +833,8 @@ class OC_App {
foreach ($appList as $app) { foreach ($appList as $app) {
foreach ($remoteApps AS $key => $remote) { foreach ($remoteApps AS $key => $remote) {
if ($app['name'] === $remote['name'] || if ($app['name'] === $remote['name'] ||
$app['ocsid'] === $remote['id']) { (isset($app['ocsid']) &&
$app['ocsid'] === $remote['id'])) {
unset($remoteApps[$key]); unset($remoteApps[$key]);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment