diff --git a/public/page/community.php b/public/page/community.php index 950df46..6be7699 100644 --- a/public/page/community.php +++ b/public/page/community.php @@ -55,8 +55,8 @@ if ($pdo) { foreach ($tokens as $tok) { $tok = trim($tok); if ($tok === '') continue; - $ph = ':t' . $i++; - $conditions[] = "(ft.title LIKE $ph OR ft.body LIKE $ph)"; + $ph = 't' . $i++; + $conditions[] = "(ft.title LIKE :$ph OR ft.body LIKE :$ph)"; $params[$ph] = '%' . $tok . '%'; } }