summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 2bc707269..fe8e74bd9 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -34,7 +34,7 @@ function idx_getPageWords($page){
$body = strtr($body, "\r\n\t", ' ');
$tokens = explode(' ', $body);
$tokens = array_count_values($tokens); // count the frequency of each token
-
+
$words = array();
foreach ($tokens as $word => $count) {
@@ -54,7 +54,7 @@ function idx_getPageWords($page){
$words[$word] = $count + (isset($words[$word]) ? $words[$word] : 0);
}
}
-
+
// arrive here with $words = array(word => frequency)
$index = array(); //resulting index