Skip to content

Commit

Permalink
Prevent notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Nov 20, 2017
1 parent 41aae2c commit ba84841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/bootstrap3/templates/Recommend/VisualFacets.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$toplevelinfo['name'] = $toplevelfacet['value'];
$toplevelinfo['field'] = $toplevelfacet['field'];
$toplevelinfo['size'] = $toplevelfacet['count'];
foreach($toplevelfacet['pivot'] as $secondlevelfacet) {
$pivot = isset($toplevelfacet['pivot']) ? $toplevelfacet['pivot'] : [];
foreach($pivot as $secondlevelfacet) {
$secondlevelinfo = [];
$secondlevelinfo['name'] = $secondlevelfacet['value'];
$secondlevelinfo['size'] = $secondlevelfacet['count'];
Expand Down

0 comments on commit ba84841

Please sign in to comment.