Merge pull request #16818 from nextcloud/backport/16811/stable16

[stable16] Correctly remove apps without any releases
This commit is contained in:
Roeland Jago Douma 2019-09-07 11:12:28 +02:00 committed by GitHub
commit 860e35501e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -115,6 +115,7 @@ class AppFetcher extends Fetcher {
if (empty($releases)) {
// Remove apps that don't have a matching release
$response['data'][$dataKey] = [];
continue;
}
@ -136,7 +137,7 @@ class AppFetcher extends Fetcher {
}
}
$response['data'] = array_values($response['data']);
$response['data'] = array_values(array_filter($response['data']));
return $response;
}