base: add type cast to album check (#346)
parent
51a96e31bc
commit
b9a846603b
|
@ -200,7 +200,7 @@ class ApiBase extends Controller
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$owner = $this->timelineQuery->albumHasFile($album['album_id'], $id);
|
$owner = $this->timelineQuery->albumHasFile((int) $album['album_id'], $id);
|
||||||
if (!$owner) {
|
if (!$owner) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue