Skip to content

Commit

Permalink
fix(files): Fix incorrect keys by reindexing
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Jul 25, 2024
1 parent 137e346 commit 3b67637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Node/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ public function search($query) {
}, array_values($resultsPerCache), array_keys($resultsPerCache)));

// don't include this folder in the results
$files = array_filter($files, function (FileInfo $file) {
$files = array_values(array_filter($files, function (FileInfo $file) {
return $file->getPath() !== $this->getPath();
});
}));

// since results were returned per-cache, they are no longer fully sorted
$order = $query->getOrder();
Expand Down

0 comments on commit 3b67637

Please sign in to comment.