Skip to content

Commit

Permalink
pkp/pkp-lib#10111 Fixed typo
Browse files Browse the repository at this point in the history
(cherry picked from commit a2f0623)
  • Loading branch information
jonasraoni committed Jun 25, 2024
1 parent 8f4b359 commit 76b6cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/search/PreprintSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getSparseArray($unorderedResults, $orderBy, $orderDir, $exclude)
$i = 0;
$contextIds = [];
foreach ($unorderedResults as $submissionId => $data) {
$data[$submissionId]['score'] = ($resultCount * $data['count']) + $i++;
$unorderedResults[$submissionId]['score'] = ($resultCount * $data['count']) + $i++;
$contextIds[] = $data['server_id'];
}

Expand Down

0 comments on commit 76b6cb4

Please sign in to comment.