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