Skip to content

Commit

Permalink
Merge pull request mautic#4090 from dongilbert/bugfix-dev-menus-71
Browse files Browse the repository at this point in the history
Fixes menu structure on php 7.1 when in dev mode
virlatinus authored May 30, 2017
2 parents c4e080d + f6a0ca5 commit 50ea341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/bundles/CoreBundle/Views/Menu/main.html.php
Original file line number Diff line number Diff line change
@@ -71,8 +71,8 @@

/* Submenu items start */
if ($showChildren) {
$options['depth'] = ($options['depth']) ? $options['depth']-- : '';
$options['matchingDepth'] = ($options['matchingDepth']) ? $options['matchingDepth']-- : '';
$options['depth'] = ($options['depth']) ? $options['depth']-- : null;
$options['matchingDepth'] = ($options['matchingDepth']) ? $options['matchingDepth']-- : null;

$levelClass = $isAncestor ? 'nav-submenu collapse in' : 'nav-submenu collapse';

0 comments on commit 50ea341

Please sign in to comment.