From 7ffb6c34968030e4f870fc8c574a04c1f7d747e1 Mon Sep 17 00:00:00 2001 From: Petar Jakopec Date: Wed, 26 Jul 2023 16:21:11 +0200 Subject: [PATCH] NGSTACK-788 return 0 when max score is null --- lib/Core/Pagination/Pagerfanta/BaseAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Core/Pagination/Pagerfanta/BaseAdapter.php b/lib/Core/Pagination/Pagerfanta/BaseAdapter.php index b4bf2819..b4bc1b99 100644 --- a/lib/Core/Pagination/Pagerfanta/BaseAdapter.php +++ b/lib/Core/Pagination/Pagerfanta/BaseAdapter.php @@ -64,7 +64,7 @@ public function getMaxScore(): float { $this->initializeExtraInfo(); - return $this->maxScore; + return $this->maxScore ?? 0; } public function getSuggestion(): Suggestion