From a1e187744b24dd02d0949eaee6b9660183ff7cb0 Mon Sep 17 00:00:00 2001
From: Viktor Pedersen <viktor@dsv.su.se>
Date: Wed, 8 Sep 2021 10:31:45 +0200
Subject: [PATCH] testing search function

---
 include/SearchPage.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/SearchPage.php b/include/SearchPage.php
index 18469f4..b823aef 100644
--- a/include/SearchPage.php
+++ b/include/SearchPage.php
@@ -115,8 +115,11 @@ class SearchPage extends Page {
             //         $mustMatchCheck[] = False;
             //     }
             // }
-
-            if(in_array(False, $mustMatchCheck, True) === False) {
+            // if(in_array(False, $mustMatchCheck, True) === False) {
+            //     $sanitizedItems[] = array($item, $mustMatch);
+            // }
+            
+            if($mustMatch) {
                 $sanitizedItems[] = array($item, $mustMatch);
             }