Skip to content

Commit

Permalink
Merge pull request FluidTYPO3#802 from bjo3rnf/tagcontent
Browse files Browse the repository at this point in the history
[BUGFIX] Don't assign empty content
  • Loading branch information
NamelessCoder committed Mar 25, 2015
2 parents fd5a466 + 434cc47 commit 6fec631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Traits/TagViewHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ protected function renderTag($tagName, $content = NULL, array $attributes = arra
$this->tag->setTagName($tagName);
$this->tag->addAttributes($attributes);
$this->tag->forceClosingTag($forceClosingTag);
$this->tag->setContent($content);
if (NULL !== $content) {
$this->tag->setContent($content);
}
// process some attributes differently - if empty, remove the property:
foreach ($nonEmptyAttributes as $propertyName) {
$value = $this->arguments[$propertyName];
Expand Down

0 comments on commit 6fec631

Please sign in to comment.