testing search function

This commit is contained in:
Viktor Pedersen 2021-09-08 10:39:08 +02:00
parent 4e6ad4f94e
commit 18b4267f51

@ -110,15 +110,15 @@ class SearchPage extends Page {
$mustMatchCheck = array();
foreach($mustMatchArray as $mustMatchTerm) {
$matchingResult = $item->matches($mustMatchTerm);
if ($matchingResult) {
$matchResult = $item->matches($mustMatchTerm);
if ($matchResult) {
$mustMatchCheck[] = True;
} else {
$mustMatchCheck[] = False;
}
}
if(in_array(False, $mustMatchCheck, True) === False) {
$sanitizedItems[] = array($item, $mustMatch);
$sanitizedItems[] = array($item, $matchResult);
}