aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/search.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 45ccba3557..ac3226372c 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -252,7 +252,7 @@ if ($search_keywords || $search_author || $search_id)
{
$$var = array_shift($data);
}
-
+
$sql_where = (($show_results == 'posts') ? 'p.post_id' : 't.topic_id') . ' IN (' . implode(', ', $data) . ')';
unset($data);
}
@@ -318,8 +318,12 @@ if ($search_keywords || $search_author || $search_id)
}
}
+ if (isset($old_split_words) && sizeof($old_split_words))
+ {
+ $split_words = (sizeof($split_words)) ? array_diff($split_words, $old_split_words) : $old_split_words;
+ }
- if (sizeof($split_words) && array_diff($split_words, $old_split_words))
+ if (sizeof($split_words))
{