Skip to content

Commit

Permalink
[BUGFIX] Prevent unintended auto rendering (FluidTYPO3#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjo3rnf authored and NamelessCoder committed Aug 4, 2016
1 parent f7c1e90 commit 05d4f91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ public function renderContent(array $menu)
$content = $this->renderChildren();
if (0 < strlen(trim($content))) {
$output = $content;
} elseif ((boolean) $this->arguments['hideIfEmpty'] === true) {
$output = '';
} else {
$output = $this->renderTag($this->getWrappingTagName(), $this->autoRender($menu));
}
Expand Down

0 comments on commit 05d4f91

Please sign in to comment.