summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-07-24 13:07:58 +0000
committerxue <>2007-07-24 13:07:58 +0000
commitcb5fc1bab473aad142c54dea69b4c67cae1e56fd (patch)
tree04d5e4c0f2db66a78d25fcc75f2250c6288e4960
parent3d2cc3696a378d79fb4fa36e76ddc2568ad0835d (diff)
fixed a bug in Text_Highlighter_Renderer_Html
-rw-r--r--framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php2
1 files changed, 2 insertions, 0 deletions
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