Merge pull request #10472 from owncloud/fix_undefined_index_ocsid

check if array index ocsid is set before accessing it
This commit is contained in:
Thomas Müller 2014-08-18 10:43:21 +02:00
commit 62e06cb0ba

View file

@ -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]);
}
}