Skip to content

Commit

Permalink
Support PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed May 18, 2022
1 parent d2b5f71 commit c9602a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Block/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public function __construct(

$this->_helper = $helper;
$this->_magicmenuCollectionFactory = $magicmenuCollectionFactory;
$this->_sysCfg= (object) $this->_helper->getConfigModule();
$configModule = $this->_helper->getConfigModule();
if( is_null($configModule['topmenu']['notIncludeNav']) ) $configModule['topmenu']['notIncludeNav'] = '';
if( is_null($configModule['vmenu']['notIncludeNav']) ) $configModule['vmenu']['notIncludeNav'] = '';
$this->_sysCfg= (object) $configModule;

$this->serializer = $serializer ?: \Magento\Framework\App\ObjectManager::getInstance()
->get(\Magento\Framework\Serialize\Serializer\Json::class);
Expand Down

0 comments on commit c9602a5

Please sign in to comment.