summaryrefslogtreecommitdiff
path: root/inc/indexer.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/indexer.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/indexer.php')
-rw-r--r--inc/indexer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 5aa321d46..eaab7736a 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -566,7 +566,12 @@ class Doku_Indexer {
unset($words); // free the used memory
+ // initialize the result so it won't be null
$result = array();
+ foreach ($value_array as $val) {
+ $result[$val] = array();
+ }
+
$page_idx = $this->_getIndex('page', '');
// Special handling for titles