| @@ 671-679 (lines=9) @@ | ||
| 668 | $excludedPhrases = array(); |
|
| 669 | ||
| 670 | // .. first, we check for things like -"some words", but not "-some words". |
|
| 671 | foreach ($matches[1] as $index => $word) |
|
| 672 | { |
|
| 673 | if ($word === '-') |
|
| 674 | { |
|
| 675 | if (($word = trim($phraseArray[$index], '-_\' ')) !== '' && !in_array($word, $blacklisted_words)) |
|
| 676 | $excludedWords[] = $word; |
|
| 677 | unset($phraseArray[$index]); |
|
| 678 | } |
|
| 679 | } |
|
| 680 | ||
| 681 | // Now we look for -test, etc.... normaller. |
|
| 682 | foreach ($wordArray as $index => $word) |
|
| @@ 1404-1411 (lines=8) @@ | ||
| 1401 | $excludedWords = array(); |
|
| 1402 | ||
| 1403 | // .. first, we check for things like -"some words", but not "-some words". |
|
| 1404 | foreach ($matches[1] as $index => $word) |
|
| 1405 | if ($word == '-') |
|
| 1406 | { |
|
| 1407 | $word = $smcFunc['strtolower'](trim($searchArray[$index])); |
|
| 1408 | if (strlen($word) > 0) |
|
| 1409 | $excludedWords[] = $word; |
|
| 1410 | unset($searchArray[$index]); |
|
| 1411 | } |
|
| 1412 | ||
| 1413 | // Now we look for -test, etc.... normaller. |
|
| 1414 | foreach ($tempSearch as $index => $word) |
|