base: add type cast to album check (#346)

pull/363/head
Varun Patil 2023-01-18 11:32:04 -08:00
parent 51a96e31bc
commit b9a846603b
1 changed files with 1 additions and 1 deletions

View File

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