- Fixed a warning. Patch by Jacobo Tarrio.
							parent
							
								
									adc5ab2f5a
								
							
						
					
					
						commit
						2aa762436f
					
				| 
						 | 
				
			
			@ -262,8 +262,10 @@ function update_index($search_array) {
 | 
			
		|||
      ** Walk through the weighted words array, inserting them into
 | 
			
		||||
      ** the search index
 | 
			
		||||
      */
 | 
			
		||||
      foreach ($newwords as $key => $value) {
 | 
			
		||||
        db_query("INSERT INTO search_index VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value);
 | 
			
		||||
      if ($newwords) {
 | 
			
		||||
        foreach ($newwords as $key => $value) {
 | 
			
		||||
          db_query("INSERT INTO search_index VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value);
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      // Zap the weighted words array, so we don't add multiples.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -262,8 +262,10 @@ function update_index($search_array) {
 | 
			
		|||
      ** Walk through the weighted words array, inserting them into
 | 
			
		||||
      ** the search index
 | 
			
		||||
      */
 | 
			
		||||
      foreach ($newwords as $key => $value) {
 | 
			
		||||
        db_query("INSERT INTO search_index VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value);
 | 
			
		||||
      if ($newwords) {
 | 
			
		||||
        foreach ($newwords as $key => $value) {
 | 
			
		||||
          db_query("INSERT INTO search_index VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value);
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      // Zap the weighted words array, so we don't add multiples.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue