testing search function

This commit is contained in:
Viktor Pedersen 2021-09-06 17:06:05 +02:00
parent 51194682db
commit d5571507e9

@ -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: ');