mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
minor formatting
This commit is contained in:
parent
127270ff89
commit
5609506def
1 changed files with 2 additions and 4 deletions
|
@ -783,12 +783,10 @@ class search
|
|||
continue;
|
||||
|
||||
// Only search the inverted index if it actually exists there
|
||||
if(isset($invindex[$qterm]))
|
||||
{
|
||||
if(isset($invindex[$qterm])) {
|
||||
// Loop over each page in the inverted index entry
|
||||
reset($invindex[$qterm]); // Reset array/object pointer
|
||||
foreach($invindex[$qterm] as $pageid => $page_entry)
|
||||
{
|
||||
foreach($invindex[$qterm] as $pageid => $page_entry) {
|
||||
// Create an entry in the matching pages array if it doesn't exist
|
||||
if(!isset($matching_pages[$pageid]))
|
||||
$matching_pages[$pageid] = [ "nterms" => [] ];
|
||||
|
|
Loading…
Reference in a new issue