Skip to content

Commit

Permalink
closes #767 for magento 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Aug 16, 2019
1 parent 3985365 commit decae61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ public function getInterest($storeId)
$api = $this->getApi($storeId);
$listId = $this->getConfigValue(self::XML_PATH_LIST, $storeId);
$allInterest = $api->lists->interestCategory->getAll($listId);
if (array_key_exists('categories',$allInterest) && is_array($allInterest['categories'])) {
if (is_array($allInterest) && array_key_exists('categories',$allInterest) && is_array($allInterest['categories'])) {
foreach ($allInterest['categories'] as $item) {
if (in_array($item['id'], $interest)) {
$rc[$item['id']]['interest'] = ['id' => $item['id'], 'title' => $item['title'], 'type' => $item['type']];
Expand Down

0 comments on commit decae61

Please sign in to comment.