aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-21 21:04:36 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-21 21:04:36 +0100
commit88caa14030f29c59424beb0237ea10526565b4e6 (patch)
tree63d4b5a56a3b49508454efa4dffa744c2ea021cb /library
parentbb233a98727a787f1ad77714564e437544192fce (diff)
downloadvolse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.tar.gz
volse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.tar.bz2
volse-hubzilla-88caa14030f29c59424beb0237ea10526565b4e6.zip
fix text highlighter for PHP version 7.1
Diffstat (limited to 'library')
-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
+?>