Skip to content
Snippets Groups Projects
Commit d02a4d68 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fixed Collections/Home failing if getFullFieldFacets doesn’t return anything for hierarchy_browse.

parent 62e6cbe3
No related merge requests found
......@@ -178,7 +178,8 @@ class CollectionsController extends AbstractBase
$result = $searchObject->getFullFieldFacets(
[$browseField], false, 150000, 'index'
);
$result = $result[$browseField]['data']['list'];
$result = isset($result[$browseField]['data']['list'])
? $result[$browseField]['data']['list'] : [];
$delimiter = $this->getBrowseDelimiter();
foreach ($result as $rkey => $collection) {
......
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