diff --git a/helper/string.utils.php b/helper/string.utils.php
index 368c8d5..279e498 100644
--- a/helper/string.utils.php
+++ b/helper/string.utils.php
@@ -173,7 +173,11 @@ if(!check_function_exists("parse_pipelined_data")) {
if(!check_function_exists("get_highlighted_html_by_word")) {
function get_highlighted_html_by_word($word, $text) {
- return preg_replace("/\w*?$word\w*/i", "$0", $text);
+ $html = $text;
+ if(strlen($word) > 0) {
+ $html = preg_replace("/\w*?$word\w*/i", "$0", $text);
+ }
+ return $html;
}
}