fixed typo
This commit is contained in:
parent
2b12968e43
commit
38ce91e332
@ -187,29 +187,28 @@ class SearchPage extends Page {
|
||||
|
||||
foreach($items as $item) {
|
||||
$mustExcludeCheck = True;
|
||||
$resultExclude = $item->matches($mustExcludeArray)
|
||||
$resultExclude = $item->matches($mustExcludeArray);
|
||||
if($resultExclude) {
|
||||
$mustExcludeCheck = False;
|
||||
}
|
||||
$mustIncludeCheck = False;
|
||||
if(count($mustIncludeArray) > 0) {
|
||||
foreach($mustIncludeArray as $mustIncludeArgument) {
|
||||
$resultInclude = $item->matches($mustIncludeArgument)
|
||||
if($resultInclude) {
|
||||
$mustIncludeCheck = True;
|
||||
} else {
|
||||
$mustIncludeCheck = False;
|
||||
break;
|
||||
}
|
||||
|
||||
} else {
|
||||
$mustIncludeCheck = False;
|
||||
if(count($mustIncludeArray) > 0) {
|
||||
foreach($mustIncludeArray as $mustIncludeArgument) {
|
||||
$resultInclude = $item->matches($mustIncludeArgument);
|
||||
if($resultInclude) {
|
||||
$mustIncludeCheck = True;
|
||||
} else {
|
||||
$mustIncludeCheck = False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($mustExcludeCheck) {
|
||||
if ($mustIncludeCheck) {
|
||||
if(count($canIncludeArray) > 0) {
|
||||
$canIncludeResult = $item->matches($canIncludeArray)
|
||||
$canIncludeResult = $item->matches($canIncludeArray);
|
||||
$out[] = array($item, $canIncludeResult);
|
||||
} else {
|
||||
$mustIncludeResult = $item->matches($mustIncludeArray)
|
||||
$mustIncludeResult = $item->matches($mustIncludeArray);
|
||||
$out[] = array($item, $mustIncludeResult);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user