- Fixed off-by-one bug in the search module. Patch by Brad. (Still looking

into the blog module patch.)
4.2.x
Dries Buytaert 2003-02-16 17:47:53 +00:00
parent dd329e1d95
commit 465a598770
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ function update_index($search_array) {
** the number of times it appears in a page.
*/
foreach ($eachword as $word) {
if (strlen($word) > $minimum_word_size) {
if (strlen($word) >= $minimum_word_size) {
if ($newwords[$word]) {
$newwords[$word]++;
}

View File

@ -246,7 +246,7 @@ function update_index($search_array) {
** the number of times it appears in a page.
*/
foreach ($eachword as $word) {
if (strlen($word) > $minimum_word_size) {
if (strlen($word) >= $minimum_word_size) {
if ($newwords[$word]) {
$newwords[$word]++;
}