- Bugfix: fixed problem with search key replacement. Patch by Kjartan.
							parent
							
								
									752c0eb70e
								
							
						
					
					
						commit
						90e5e355cb
					
				| 
						 | 
				
			
			@ -120,7 +120,7 @@ function do_search($search_array) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // Put the next search word into the query and do the query
 | 
			
		||||
    $query = preg_replace("'\%'", check_query($word), $select);
 | 
			
		||||
    $query = str_replace("'%'", "'". check_query($word) ."'", $select);
 | 
			
		||||
    $result = db_query($query);
 | 
			
		||||
 | 
			
		||||
    // If we got any results
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -120,7 +120,7 @@ function do_search($search_array) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    // Put the next search word into the query and do the query
 | 
			
		||||
    $query = preg_replace("'\%'", check_query($word), $select);
 | 
			
		||||
    $query = str_replace("'%'", "'". check_query($word) ."'", $select);
 | 
			
		||||
    $result = db_query($query);
 | 
			
		||||
 | 
			
		||||
    // If we got any results
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue