From d5571507e99ba1657767816b6709b7c9a736f818 Mon Sep 17 00:00:00 2001 From: Viktor Pedersen <viktor@dsv.su.se> Date: Mon, 6 Sep 2021 17:06:05 +0200 Subject: [PATCH] testing search function --- include/SearchPage.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/SearchPage.php b/include/SearchPage.php index 9c3e3a4..df889ed 100644 --- a/include/SearchPage.php +++ b/include/SearchPage.php @@ -104,19 +104,7 @@ class SearchPage extends Page { foreach($items as $item) { $mustMatch = $item->matches($mustMatchArray); - $mustMatchCheck = array(); - foreach($mustIncludeArray as $mustIncludeTerm) { - if (in_array(False, $mustMatchCheck, True) === True) { - $mustMatchCheck[] = True; - print('DEBUG added TRUE to $mustMatchCheck[]<br>'); - } else { - $mustMatchCheck[] = False; - print('DEBUG added FALSE to $mustMatchCheck[]<br>'); - } - } - - - if(in_array(False, $mustIncludeCheck, True) === False) { + if($mustMatch) { $sanitizedItems[] = array($item, $mustMatch); } print('DEBUG $sanitizedItem: ');