Merge pull request #48031 from nextcloud/fix/filesreport-cast-fileId-to-int

fix(filesreport): cast fileId to integer
This commit is contained in:
Anna 2024-09-16 11:07:22 +02:00 committed by GitHub
commit 04997dfc53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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