Skip to content

Commit

Permalink
closes #767 for magento 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Aug 16, 2019
1 parent 4f5bc31 commit 1e764f6
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 @@ -1048,7 +1048,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 1e764f6

Please sign in to comment.