aboutsummaryrefslogtreecommitdiffstats
path: root/library/Text_Highlighter
diff options
context:
space:
mode:
Diffstat (limited to 'library/Text_Highlighter')
-rw-r--r--library/Text_Highlighter/Text/Highlighter/Renderer/Array.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/Text_Highlighter/Text/Highlighter/Renderer/Array.php b/library/Text_Highlighter/Text/Highlighter/Renderer/Array.php
index fd238a4d1..edf6290f8 100644
--- a/library/Text_Highlighter/Text/Highlighter/Renderer/Array.php
+++ b/library/Text_Highlighter/Text/Highlighter/Renderer/Array.php
@@ -143,7 +143,9 @@ class Text_Highlighter_Renderer_Array extends Text_Highlighter_Renderer
function acceptToken($class, $content)
{
-
+ if(! is_array($this->_output)) {
+ $this->_output = array();
+ }
$theClass = $this->_getFullClassName($class);
if ($this->_htmlspecialchars) {
$content = htmlspecialchars($content);
@@ -197,4 +199,4 @@ class Text_Highlighter_Renderer_Array extends Text_Highlighter_Renderer
* End:
*/
-?> \ No newline at end of file
+?>