diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-01-21 21:04:36 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-01-21 21:04:36 +0100 |
commit | 88caa14030f29c59424beb0237ea10526565b4e6 (patch) | |
tree | 63d4b5a56a3b49508454efa4dffa744c2ea021cb | |
parent | bb233a98727a787f1ad77714564e437544192fce (diff) | |
download | volse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.tar.gz volse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.tar.bz2 volse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.zip |
fix text highlighter for PHP version 7.1
-rw-r--r-- | library/Text_Highlighter/Text/Highlighter/Renderer/Array.php | 6 |
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 +?> |