testing search function

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

@ -106,7 +106,7 @@ class SearchPage extends Page {
$mustMatchCheck = array();
foreach($mustIncludeArray as $mustIncludeTerm) {
if (array_key_exists($mustIncludeTerm, $mustMatchCheck)) {
if (in_array(False, $mustMatchCheck, True) === True) {
$mustMatchCheck[] = True;
print('DEBUG added TRUE to $mustMatchCheck[]<br>');
} else {
@ -114,13 +114,15 @@ class SearchPage extends Page {
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);
}
print('DEBUG $sanitizedItem: ');
var_dump($sanitizedItem);
print('<br><br>');
// $mustIncludeCheck = array();
// foreach($mustIncludeArray as $mustIncludeTerm) {
// if ($item->matches($mustIncludeTerm)) {