fix(filesreport): cast fileId to integer

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch 2024-09-15 16:55:31 +02:00 committed by backportbot[bot]
parent 32866bc7ee
commit ff49395e46

View file

@ -410,7 +410,7 @@ class FilesReportPlugin extends ServerPlugin {
$results = [];
foreach ($fileIds as $fileId) {
$entry = $folder->getFirstNodeById($fileId);
$entry = $folder->getFirstNodeById((int)$fileId);
if ($entry) {
$results[] = $this->wrapNode($entry);
}