Browse Source
Merge pull request #16811 from nextcloud/bugfix/16771/correctly-remove-apps-without-any-releases
Correctly remove apps without any releases
tags/v17.0.0beta2
Roeland Jago Douma
4 years ago
No account linked to committer's email address
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$response['data'] = array_values($response['data']); |
|
|
|
|
|
|
|
|
$response['data'] = array_values(array_filter($response['data'])); |
|
|
return $response; |
|
|
return $response; |
|
|
} |
|
|
} |
|
|
|
|
|
|