From cb3afda011a48df4491b4c65090d1ce900aa9837 Mon Sep 17 00:00:00 2001 From: Genki Sakanashi <> Date: Tue, 21 Mar 2023 12:41:41 +0900 Subject: [PATCH] to sequential --- lib/Controller/AlbumsController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php index 6c0b05e8..82c39297 100644 --- a/lib/Controller/AlbumsController.php +++ b/lib/Controller/AlbumsController.php @@ -65,6 +65,9 @@ class AlbumsController extends ApiBase return true; }); + // Convert $list to sequential array + $list = array_values($list); + return new JSONResponse($list, Http::STATUS_OK); }