From 88caa14030f29c59424beb0237ea10526565b4e6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 21 Jan 2017 21:04:36 +0100 Subject: fix text highlighter for PHP version 7.1 --- library/Text_Highlighter/Text/Highlighter/Renderer/Array.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'library/Text_Highlighter') 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 +?> -- cgit v1.2.3