From b9a846603b73656251c5a4a6b7f0a83dbaabae45 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 18 Jan 2023 11:32:04 -0800 Subject: [PATCH] base: add type cast to album check (#346) --- lib/Controller/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ApiBase.php b/lib/Controller/ApiBase.php index a87410fd..56cd16f7 100644 --- a/lib/Controller/ApiBase.php +++ b/lib/Controller/ApiBase.php @@ -200,7 +200,7 @@ class ApiBase extends Controller return null; } - $owner = $this->timelineQuery->albumHasFile($album['album_id'], $id); + $owner = $this->timelineQuery->albumHasFile((int) $album['album_id'], $id); if (!$owner) { return null; }