Skip to content

Commit

Permalink
Save an API call if no facets are configured
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Jan 29, 2025
1 parent cab3c23 commit c2e6276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/Search/ProQuestFSG/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c2e6276

Please sign in to comment.