testing search function

This commit is contained in:
Viktor Pedersen 2021-09-06 17:02:54 +02:00
parent dc3cd3251b
commit 976ca1cfaa

@ -108,10 +108,16 @@ class SearchPage extends Page {
foreach($mustIncludeArray as $mustIncludeTerm) {
if (array_key_exists($mustIncludeTerm, $mustMatchCheck)) {
$mustMatchCheck[] = True;
print('DEBUG added TRUE to $mustMatchCheck[]<br>');
} else {
$mustMatchCheck[] = False;
print('DEBUG added FALSE to $mustMatchCheck[]<br>');
}
}
print('DEBUG $sanitizedItem: ');
var_dump($sanitizedItem);
print('<br><br>');
if(in_array(False, $mustIncludeCheck, True) === False) {
$sanitizedItems[] = array($item, $mustMatch);
}