search_to_sql: trim() input

This commit is contained in:
Andrew Dolgov 2015-08-14 10:31:29 +03:00
parent 610914d4d6
commit 28539f6aaf

View file

@ -284,7 +284,7 @@
function search_to_sql($search, $search_language) {
$keywords = str_getcsv($search, " ");
$keywords = str_getcsv(trim($search), " ");
$query_keywords = array();
$search_words = array();
$search_query_leftover = array();