From cb5fc1bab473aad142c54dea69b4c67cae1e56fd Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jul 2007 13:07:58 +0000 Subject: fixed a bug in Text_Highlighter_Renderer_Html --- framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework') diff --git a/framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php b/framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php index b89683d8..40cb3f59 100644 --- a/framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php +++ b/framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php @@ -289,6 +289,8 @@ class Text_Highlighter_Renderer_Html extends Text_Highlighter_Renderer_Array // get parent's output parent::finalize(); $output = parent::getOutput(); + if(empty($output)) + return; $html_output = ''; // loop through each class=>content pair -- cgit v1.2.3