This commit is contained in:
2025-12-30 00:25:07 +01:00
parent 6e76029223
commit ba462f8e49

View File

@@ -55,8 +55,8 @@ if ($pdo) {
foreach ($tokens as $tok) { foreach ($tokens as $tok) {
$tok = trim($tok); $tok = trim($tok);
if ($tok === '') continue; if ($tok === '') continue;
$ph = ':t' . $i++; $ph = 't' . $i++;
$conditions[] = "(ft.title LIKE $ph OR ft.body LIKE $ph)"; $conditions[] = "(ft.title LIKE :$ph OR ft.body LIKE :$ph)";
$params[$ph] = '%' . $tok . '%'; $params[$ph] = '%' . $tok . '%';
} }
} }