Skip to content
Snippets Groups Projects
Commit b0da7efc authored by Demian Katz's avatar Demian Katz
Browse files

Resolving VUFIND-679 (Prevent PubDate Recommend showing on parse error).

parent 25862902
No related merge requests found
......@@ -115,6 +115,10 @@ class PubDateVisAjax implements RecommendInterface
*/
public function getVisFacets()
{
// Don't bother processing if the result set is empty:
if ($this->searchObject->getResultTotal() == 0) {
return array();
}
return $this->processDateFacets(
$this->searchObject->getParams()->getFilters()
);
......
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