]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Ensure app discover section is returned as list backport/48311/stable30 48314/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Tue, 24 Sep 2024 10:31:57 +0000 (12:31 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 24 Sep 2024 11:37:41 +0000 (11:37 +0000)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/settings/lib/Controller/AppSettingsController.php

index 760584888c0152dcdad0f5db4229feef41e7686e..743c1673a56cf10b3102a915430e27b1cca00b23 100644 (file)
@@ -106,7 +106,7 @@ class AppSettingsController extends Controller {
        #[NoCSRFRequired]
        public function getAppDiscoverJSON(): JSONResponse {
                $data = $this->discoverFetcher->get(true);
-               return new JSONResponse($data);
+               return new JSONResponse(array_values($data));
        }
 
        /**