- Fixed off-by-one bug in the search module. Patch by Brad. (Still looking
into the blog module patch.)4.2.x
							parent
							
								
									dd329e1d95
								
							
						
					
					
						commit
						465a598770
					
				| 
						 | 
				
			
			@ -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]++;
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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]++;
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue