SHOW:
|
|
- or go back to the newest paste.
| 1 | public function renderValidTag(array $tagInfo, array $tag, array $rendererStates) | |
| 2 | {
| |
| 3 | $parent = parent::renderValidTag($tagInfo, $tag, $rendererStates); | |
| 4 | ||
| 5 | - | if(in_array($tag['tag'], array('b', 'i', 'u', 's', 'color', 'font', 'size', 'left', 'center', 'right', 'indent', 'url', 'email', 'img', 'quote', 'code', 'php', 'html', 'plain', 'media', 'attach')))
|
| 5 | + | if( isset($tag['tag']) |
| 6 | && in_array($tag['tag'], array('b', 'i', 'u', 's', 'color', 'font', 'size', 'left', 'center', 'right', 'indent', 'url', 'email', 'img', 'quote', 'code', 'php', 'html', 'plain', 'media', 'attach'))
| |
| 7 | ) | |
| 8 | {
| |
| 9 | $content = $this->renderSubTree($tag['children'], $rendererStates); | |
| 10 | if(empty($content)) | |
| 11 | {
| |
| 12 | return $this->renderInvalidTag($tag, $rendererStates); | |
| 13 | } | |
| 14 | } | |
| 15 | ||
| 16 | return $parent; | |
| 17 | } |