check if array index ocsid is set before accessing it

This commit is contained in:
Georg Ehrke 2014-08-17 22:26:14 +02:00
parent 4c79d34980
commit 7347174636
1 changed files with 2 additions and 1 deletions

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