summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 891558f96..8155325ee 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -234,7 +234,8 @@ function _ft_pageLookup(&$data){
}
}
if ($in_title) {
- foreach ($Indexer->lookupKey('title', "*$id*") as $p_id) {
+ $wildcard_id = "*$id*";
+ foreach ($Indexer->lookupKey('title', $wildcard_id) as $p_id) {
if (!isset($pages[$p_id]))
$pages[$p_id] = p_get_first_heading($p_id, false);
}