album: cast id to int (fix #292)

pull/363/head
Varun Patil 2023-01-15 13:50:32 -08:00
parent f4561296d8
commit 892abe81cc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}