asdsd
This commit is contained in:
@@ -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 . '%';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user