Skip to content

Commit

Permalink
NGSTACK-788 return 0 when max score is null
Browse files Browse the repository at this point in the history
  • Loading branch information
petarjakopec committed Jul 26, 2023
1 parent a7dd94f commit 7b6fb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Core/Pagination/Pagerfanta/BaseAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getMaxScore(): float
{
$this->initializeExtraInfo();

return $this->maxScore;
return $this->maxScore ?? 0;
}

public function getSuggestion(): Suggestion
Expand Down

0 comments on commit 7b6fb15

Please sign in to comment.