From c9602a5b31de1359b7b4142f18977dabe0b04874 Mon Sep 17 00:00:00 2001 From: Alex Dong Date: Wed, 18 May 2022 11:32:42 +0700 Subject: [PATCH] Support PHP 8 --- Block/Menu.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Block/Menu.php b/Block/Menu.php index fe3b321..9ac10ed 100644 --- a/Block/Menu.php +++ b/Block/Menu.php @@ -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);