search_to_sql: quote fallback search language

This commit is contained in:
Andrew Dolgov 2017-12-30 16:27:05 +03:00
parent 96d8c40188
commit 9274109c19

View file

@ -1381,7 +1381,7 @@
if ($search_language) if ($search_language)
$search_language = $pdo->quote(mb_strtolower($search_language)); $search_language = $pdo->quote(mb_strtolower($search_language));
else else
$search_language = "english"; $search_language = $pdo->quote("english");
foreach ($keywords as $k) { foreach ($keywords as $k) {
if (strpos($k, "-") === 0) { if (strpos($k, "-") === 0) {