mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Correctly remove apps without any releases
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fb46f73696
commit
15a8537848
1 changed files with 7 additions and 1 deletions
|
|
@ -106,6 +106,12 @@ class AppFetcher extends Fetcher {
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($releases)) {
|
||||
// Remove apps that don't have a matching release
|
||||
$response['data'][$dataKey] = [];
|
||||
continue;
|
||||
}
|
||||
|
||||
// Get the highest version
|
||||
$versions = [];
|
||||
foreach($releases as $release) {
|
||||
|
|
@ -129,7 +135,7 @@ class AppFetcher extends Fetcher {
|
|||
}
|
||||
}
|
||||
|
||||
$response['data'] = array_values($response['data']);
|
||||
$response['data'] = array_values(array_filter($response['data']));
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue