aboutsummaryrefslogtreecommitdiffstats
path: root/library/Text_Highlighter/Text/Highlighter
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-08 09:39:46 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-08 09:39:46 +0100
commitbc2b948f1f6e62b1c277a4042200bb6678956f3f (patch)
tree8586c30e495607eee23f16c0aad40974f0711275 /library/Text_Highlighter/Text/Highlighter
parent23e3e2c50499fab52769929a448e73012fd915af (diff)
parentff9442474d07cce24c8f66db39ec34471c3874a2 (diff)
downloadvolse-hubzilla-2.2.tar.gz
volse-hubzilla-2.2.tar.bz2
volse-hubzilla-2.2.zip
Merge branch 2.2RC2.2
Diffstat (limited to 'library/Text_Highlighter/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
+?>