summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-02-24 23:53:51 +0100
committerMichael Hamann <michael@content-space.de>2011-02-24 23:53:51 +0100
commit7233c152c0a107c0f12dbc09f5493022b264dddb (patch)
treee9a0f0ccc46921985c2441c7ce00f8b07de09970 /inc/fulltext.php
parentf77fc90de1e477b721442757cd7413f91cccc044 (diff)
downloadrpg-7233c152c0a107c0f12dbc09f5493022b264dddb.tar.gz
rpg-7233c152c0a107c0f12dbc09f5493022b264dddb.tar.bz2
Fix pass by reference error, always return an array in lookupKey()
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);
}