summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-10-23 16:53:14 +0000
committerfisharebest <fisharebest@gmail.com>2011-10-23 16:53:14 +0000
commitf1d918511baf92e34b414b1e090fd9a2c1523add (patch)
treebea5f4be1beeef9c5753a7be6e9dc516e02f5099
parent6e8b6e08b66717e3d65323d3621adb433532f7c7 (diff)
downloadwebtrees-f1d918511baf92e34b414b1e090fd9a2c1523add.tar.gz
webtrees-f1d918511baf92e34b414b1e090fd9a2c1523add.tar.bz2
webtrees-f1d918511baf92e34b414b1e090fd9a2c1523add.zip
#880397 - Soundex Search shows list with a lot of unprintable white ? in a black diamond
-rw-r--r--includes/functions/functions_print.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index 9a225291ee..c9ef017e22 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -903,7 +903,7 @@ function write_align_with_textdir_check($t_dir, $return=false)
// the displayed string.
function highlight_search_hits($string) {
global $controller;
- if ($controller instanceof WT_Controller_Search) {
+ if ($controller instanceof WT_Controller_Search && $controller->query) {
// TODO: when a search contains multiple words, we search independently.
// e.g. searching for "FOO BAR" will find records containing both FOO and BAR.
// However, we only highlight the original search string, not the search terms.