From c2e6276792f01978f8ce52f880125229107b486a Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Wed, 29 Jan 2025 21:04:02 +0000 Subject: [PATCH] Save an API call if no facets are configured --- module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php b/module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php index 5b675aec6d7..4cfb25b87f5 100644 --- a/module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php +++ b/module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php @@ -63,7 +63,7 @@ class Results extends \VuFind\Search\Base\Results * * @var array */ - protected $simplifiedResponseFacets = null; + protected $simplifiedResponseFacets = []; /** * Support method for performAndProcessSearch -- perform a search based on the @@ -128,7 +128,7 @@ protected function storeErrorResponse(string|array $error): void */ public function getFacetList($filter = null) { - if (null === $this->simplifiedResponseFacets) { + if (!empty($filter) && empty($this->simplifiedResponseFacets)) { // Save actual search data $resultTotal = $this->resultTotal; $results = $this->results;