Skip to content

Commit

Permalink
[BUGFIX] Fixed hideIfEmpty argument. It was not used in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmverges committed Nov 18, 2014
1 parent 6611be8 commit 8826581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/TagViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function render() {
$this->arguments['class'] = trim($this->arguments['class']);
$content = $this->renderChildren();
$trimmedContent = trim($content);
if (TRUE === empty($trimmedContent)) {
if (TRUE === empty($trimmedContent) && TRUE === (boolean) $this->arguments['hideIfEmpty']) {
return '';
}
if ('none' === $this->arguments['name'] || TRUE === empty($this->arguments['name'])) {
Expand Down

0 comments on commit 8826581

Please sign in to comment.