testing search function
This commit is contained in:
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: ');
|
||||
|
Loading…
x
Reference in New Issue
Block a user