Skip to content
Snippets Groups Projects
Commit 4a79b16d authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Avoid notice.

parent 1015550e
No related merge requests found
......@@ -334,7 +334,8 @@ class MapSelection implements \VuFind\Recommend\RecommendInterface,
$result = [];
$params = $this->searchFilters;
// Check to makes sure we have a geographic search
if (strpos($params->get('fq')[0], $this->geoField) !== false) {
$filters = $params->get('fq');
if (!empty($filters) && strpos($filters[0], $this->geoField) !== false) {
$params->mergeWith($this->queryBuilder->build($this->searchQuery));
$params->set('fl', 'id, ' . $this->geoField . ', title');
$params->set('wt', 'json');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment