1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

minor formatting

This commit is contained in:
Starbeamrainbowlabs 2019-08-16 01:14:38 +01:00
parent 127270ff89
commit 5609506def
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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" => [] ];