Small optimisation to search queries

This commit is contained in:
Starbeamrainbowlabs 2015-12-26 13:06:45 +00:00
parent 24a81c2f11
commit 03552b979f
3 changed files with 5 additions and 3 deletions

View File

@ -1911,7 +1911,8 @@ class search
// Loop over each term in the query and find the matching page entries
for($i = 0; $i < count($query_terms); $i++)
$count = count($query_terms);
for($i = 0; $i < $count; $i++)
{
$qterm = $query_terms[$i];

View File

@ -50,7 +50,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds proper search functionality to Pepperminty Wiki. Note that this module, at the moment, just contains test code while I figure out how best to write a search engine.",
"id": "feature-search",
"lastupdate": 1451133815,
"lastupdate": 1451135184,
"optional": false
},
{

View File

@ -344,7 +344,8 @@ class search
// Loop over each term in the query and find the matching page entries
for($i = 0; $i < count($query_terms); $i++)
$count = count($query_terms);
for($i = 0; $i < $count; $i++)
{
$qterm = $query_terms[$i];