Skip to content

Commit

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

// If we got a primary sort order then apply it and use score as secondary
Expand Down

0 comments on commit dbdbf93

Please sign in to comment.