fixed typo

This commit is contained in:
Viktor Pedersen 2021-09-06 11:42:09 +02:00
parent 29678534f3
commit 7079ba508a

@ -86,7 +86,7 @@ class SearchPage extends Page {
switch ($parsedTerm[0]) {
case "+":
// gör $mustIncludeArray till en array av arrayer?
$mustIncludeArray[] = array($key => substr($parsedTerm, 1));
// $mustIncludeArray[] = array($key => substr($parsedTerm, 1));
if (!in_array($key, $mustIncludeArray)) {
$mustIncludeArray[$key] = array();
}
@ -133,27 +133,27 @@ class SearchPage extends Page {
}
}
if (in_array(False, $mustIncludeCheck, True) === False) {
if (in_array(False, $mustExcludeCheck, True) === True) {
// if (in_array(False, $mustIncludeCheck, True) === False) {
// if (in_array(False, $mustExcludeCheck, True) === True) {
// === IF TRUE DO NOTHING ===
// // === IF TRUE DO NOTHING ===
} else {
foreach ($canIncludeArray as $canIncludeTerm) {
$result = $item->matches($canIncludeTerm);
if($result) {
$out[] = array($item, $result);
}
}
}
}
else if () {
// } else {
// foreach ($canIncludeArray as $canIncludeTerm) {
// $result = $item->matches($canIncludeTerm);
// if($result) {
// $out[] = array($item, $result);
// }
// }
// }
// }
// else if (True) {
}
else {
// }
// else {
}
// }
}
return $out;
}