Skip to content

Commit

Permalink
Update TopMenu.php
Browse files Browse the repository at this point in the history
  • Loading branch information
diazwatson authored Feb 12, 2018
1 parent bb3db96 commit a1d5711
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Block/Html/TopMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ public function getCategoryUrl($category)
*/
public function getCmsMenu($category)
{
$block = null;
$blockId = $category->getData('cms_block_menu');

return $blockId ? $this->blockRepository->getById($blockId)->getContent() : $block;
return $blockId ? $this->blockRepository->getById($blockId)->getContent() : null;
}
}

0 comments on commit a1d5711

Please sign in to comment.