From 5609506def7485309079fbdbe8eafe2a41bdaa68 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 16 Aug 2019 01:14:38 +0100 Subject: [PATCH] minor formatting --- modules/feature-search.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/feature-search.php b/modules/feature-search.php index 6990f93..53b1e8c 100644 --- a/modules/feature-search.php +++ b/modules/feature-search.php @@ -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" => [] ];