diff --git a/lib/Ebook.php b/lib/Ebook.php index ec051185..9cc757af 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -2333,7 +2333,7 @@ final class Ebook{ if($query !== null && $query != ''){ // Preserve quotes in the query so the user can enter, e.g., "war and peace" for an exact match. - $query = trim(preg_replace('|[^a-zA-Z0-9" ]|ius', ' ', Formatter::RemoveDiacritics($query))); + $query = trim(preg_replace('|[^a-zA-Z0-9" ]|ius', '', Formatter::RemoveDiacritics($query))); $whereCondition .= ' and match(e.IndexableText, e.Title, e.IndexableAuthors, e.IndexableCollections) against(?) '; $params[] = $query;