diff --git a/include/SearchPage.php b/include/SearchPage.php index f351a24..18469f4 100644 --- a/include/SearchPage.php +++ b/include/SearchPage.php @@ -102,21 +102,22 @@ class SearchPage extends Page { $items = get_items($type); $sanitizedItems = array(); foreach($items as $item) { - // $mustMatch = $item->matches($mustMatchArray); + $mustMatch = $item->matches($mustMatchArray); - $mustMatchCheck = array(); - foreach($mustMatchArray as $mustMatchTerm) { - $matchingResult = $item->matches($mustMatchTerm); - if ($matchingResult) { - $mustMatchCheck[] = True; - } else { - $mustMatchCheck[] = False; - } - } + // $mustMatchCheck = array(); + // foreach($mustMatchArray as $mustMatchTerm) { + + // $matchingResult = $item->matches($mustMatchTerm); + // if ($matchingResult) { + // $mustMatchCheck[] = True; + // } else { + // $mustMatchCheck[] = False; + // } + // } if(in_array(False, $mustMatchCheck, True) === False) { - $sanitizedItems[] = array($item); + $sanitizedItems[] = array($item, $mustMatch); } // $mustExcludeCheck = array();