- Bugfix: fixed problem with search key replacement. Patch by Kjartan.

4.3.x
Dries Buytaert 2003-10-21 20:55:33 +00:00
parent 752c0eb70e
commit 90e5e355cb
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ function do_search($search_array) {
} }
// Put the next search word into the query and do the query // 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); $result = db_query($query);
// If we got any results // If we got any results

View File

@ -120,7 +120,7 @@ function do_search($search_array) {
} }
// Put the next search word into the query and do the query // 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); $result = db_query($query);
// If we got any results // If we got any results