From 892abe81ccc163c4f0f688c44a5692f838770299 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 15 Jan 2023 13:50:32 -0800 Subject: [PATCH] album: cast id to int (fix #292) --- lib/Controller/AlbumsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php index 61667f14..0507cd02 100644 --- a/lib/Controller/AlbumsController.php +++ b/lib/Controller/AlbumsController.php @@ -73,7 +73,7 @@ class AlbumsController extends ApiBase } // Get files - $files = $this->timelineQuery->getAlbumFiles($album['album_id']); + $files = $this->timelineQuery->getAlbumFiles((int) $album['album_id']); if (empty($files)) { return new JSONResponse([], Http::STATUS_NOT_FOUND); }