Merge pull request #18214 from nextcloud/backport/16811/stable15
[stable15] Correctly remove apps without any releases
This commit is contained in:
commit
d7ddc83f81
|
@ -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 New Issue