Merge pull request #16811 from nextcloud/bugfix/16771/correctly-remove-apps-without-any-releases
Correctly remove apps without any releases
This commit is contained in:
commit
dd02920aed
|
@ -115,6 +115,7 @@ class AppFetcher extends Fetcher {
|
||||||
|
|
||||||
if (empty($releases)) {
|
if (empty($releases)) {
|
||||||
// Remove apps that don't have a matching release
|
// Remove apps that don't have a matching release
|
||||||
|
$response['data'][$dataKey] = [];
|
||||||
continue;
|
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;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue