From d02a4d68f5e39867becad6fc6067728e754e1430 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Tue, 15 Nov 2016 12:03:41 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20Collections/Home=20failing=20if=20getFu?= =?UTF-8?q?llFieldFacets=20doesn=E2=80=99t=20return=20anything=20for=20hie?= =?UTF-8?q?rarchy=5Fbrowse.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/VuFind/src/VuFind/Controller/CollectionsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/CollectionsController.php b/module/VuFind/src/VuFind/Controller/CollectionsController.php index a2ef51816e6..d62386910fc 100644 --- a/module/VuFind/src/VuFind/Controller/CollectionsController.php +++ b/module/VuFind/src/VuFind/Controller/CollectionsController.php @@ -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) { -- GitLab