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