Skip to content

Commit

Permalink
Patch fallback content for direct replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
cclaerhout committed Apr 21, 2013
1 parent d321a7c commit e2eba57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload/library/BBM/BbCode/Formatter/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ public function replacementMethodRenderer(array $tag, array $rendererStates, $in
return $viewPermissionsReturn;
}

$fallBack = htmlspecialchars($tag['original'][0] . $tag['children'][0] . $tag['original'][1]);
$fallBackContent = (isset($tag['children'][0])) ? $tag['children'][0] : '';//If tag is empty
$fallBack = htmlspecialchars($tag['original'][0] . $fallBackContent . $tag['original'][1]);
$content = $this->renderSubTree($tag['children'], $rendererStates);
$startRange = $tagInfo['start_range'];
$endRange = $tagInfo['end_range'];
Expand Down

0 comments on commit e2eba57

Please sign in to comment.