From c40fa984f78d0992431e43339ddddbde4eb50742 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Tue, 30 Dec 2025 00:38:23 +0100 Subject: [PATCH] asdsad --- public/page/community.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/page/community.php b/public/page/community.php index 6be7699..2c40502 100644 --- a/public/page/community.php +++ b/public/page/community.php @@ -55,9 +55,12 @@ 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)"; - $params[$ph] = '%' . $tok . '%'; + $ph1 = 't' . $i . '_title'; + $ph2 = 't' . $i . '_body'; + $i++; + $conditions[] = "(ft.title LIKE :$ph1 OR ft.body LIKE :$ph2)"; + $params[$ph1] = '%' . $tok . '%'; + $params[$ph2] = '%' . $tok . '%'; } } $whereSearch = $conditions ? ('AND ' . implode(' AND ', $conditions)) : '';