Skip to content

Commit

Permalink
Add sanity check to facet attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RBech committed Nov 21, 2018
1 parent 4de526d commit 5b63692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/Model/System/Config/Source/FacetAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public function toOptionArray()
$attributes = $this->getFacetAttributes();
$values = [];

if ($attributes) {
if ($attributes && isset($attributes->facets)) {
foreach ($attributes->facets as $attribute => $facet) {
$values[] = [
'value' => $attribute,
'label' => $attribute,
];
}
}

return $values;
}

Expand Down
2 changes: 1 addition & 1 deletion code/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Clerk_Clerk>
<version>3.5.2</version>
<version>3.5.3</version>
</Clerk_Clerk>
</modules>
<global>
Expand Down

0 comments on commit 5b63692

Please sign in to comment.