Skip to content
Snippets Groups Projects
Commit 2e2d625a authored by Vít Novotný's avatar Vít Novotný Committed by Robert Lange
Browse files

Make empty searches skip authority recommendations (#1433)

parent 72674b2d
No related merge requests found
......@@ -281,6 +281,11 @@ class AuthorityRecommend implements RecommendInterface
{
$this->results = $results;
// empty searches such as New Items will return blank
if ($this->lookfor == NULL) {
return;
}
// function will return blank on Advanced Search
if ($results->getParams()->getSearchType() == 'advanced') {
return;
......
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