check if array index ocsid is set before accessing it
This commit is contained in:
parent
4c79d34980
commit
7347174636
|
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue