fixed pagebreaking code
This commit is contained in:
parent
a0128ce029
commit
ced3fc736e
@ -171,16 +171,16 @@ class SearchPage extends Page {
|
||||
$mustExcludeArray = array();
|
||||
$canIncludeArray = array();
|
||||
|
||||
foreach(terms as term) {
|
||||
if(term[$i][0] == "+"){
|
||||
foreach($terms as $term) {
|
||||
if($term[$i][0] == "+"){
|
||||
// adds to mustIncludeArray
|
||||
$mustIncludeArray[] = array(substr(term[$i], 1))
|
||||
echo "test print " substr(term[$i], 1);
|
||||
$mustIncludeArray[] = array(substr($term[$i], 1))
|
||||
echo "test print " substr($term[$i], 1);
|
||||
}
|
||||
elseif(term[$i][0] == "!" || term[$i][0] == "-"){
|
||||
elseif($term[$i][0] == "!" || $term[$i][0] == "-"){
|
||||
// adds to mustExcludeArray
|
||||
$mustExcludeArray[] = array(substr(term[$i], 1))
|
||||
echo "test print " substr(term[$i], 1);
|
||||
$mustExcludeArray[] = array(substr($term[$i], 1))
|
||||
echo "test print " substr($term[$i], 1);
|
||||
}
|
||||
else{
|
||||
// adds to canIncludeArray
|
||||
|
Loading…
x
Reference in New Issue
Block a user