testing search function
This commit is contained in:
parent
4e6ad4f94e
commit
18b4267f51
@ -110,15 +110,15 @@ class SearchPage extends Page {
|
|||||||
$mustMatchCheck = array();
|
$mustMatchCheck = array();
|
||||||
foreach($mustMatchArray as $mustMatchTerm) {
|
foreach($mustMatchArray as $mustMatchTerm) {
|
||||||
|
|
||||||
$matchingResult = $item->matches($mustMatchTerm);
|
$matchResult = $item->matches($mustMatchTerm);
|
||||||
if ($matchingResult) {
|
if ($matchResult) {
|
||||||
$mustMatchCheck[] = True;
|
$mustMatchCheck[] = True;
|
||||||
} else {
|
} else {
|
||||||
$mustMatchCheck[] = False;
|
$mustMatchCheck[] = False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(in_array(False, $mustMatchCheck, True) === 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