mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
commit
62e06cb0ba
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