mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
check if array index ocsid is set before accessing it
This commit is contained in:
parent
4c79d34980
commit
7347174636
1 changed files with 2 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue