Correctly remove apps without any releases
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
97f3fbc505
commit
313e98437d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue