Skip to content

Commit

Permalink
bugfix: remove warnings from navbar module in php7
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph authored and Philipp Seibt committed Mar 8, 2018
1 parent b04f477 commit 48246ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Module/MateThemeSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class MateThemeSetup extends \BackendModule
{
const VERSION = '1.0.25';
const VERSION = '1.0.27';

protected $strTemplate = 'be_mateTheme_setup';

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/modules/Mate/NavBarModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function compile()
$strDropdownNav = '';
if(is_array($arrItems)) {
foreach ($arrItems as $item) {
if(count($item['subitems']) > 0) {
if(isset($item['subitems']) && is_array($item['subitems']) && count($item['subitems']) > 0) {
/** @var \FrontendTemplate|object $objTemplate */
$objTemplate = new \FrontendTemplate($this->mateDropdownTpl);
$objTemplate->id = $this->id;
Expand Down

0 comments on commit 48246ce

Please sign in to comment.