Skip to content

Commit

Permalink
fix(filesreport): cast fileId to integer
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala committed Sep 15, 2024
1 parent 6a6910f commit ed659ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function findNodesByFileIds(Node $rootNode, array $fileIds): array {

$results = [];
foreach ($fileIds as $fileId) {
$entry = $folder->getFirstNodeById($fileId);
$entry = $folder->getFirstNodeById((int) $fileId);
if ($entry) {
$results[] = $this->wrapNode($entry);
}
Expand Down

0 comments on commit ed659ac

Please sign in to comment.