From 4bddcbee7361570bd6702fa94a78b32fafdc4162 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Wed, 31 Dec 2025 01:45:35 +0100 Subject: [PATCH] asdasd --- src/App/Search.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App/Search.php b/src/App/Search.php index ae9c658..a9c12d9 100644 --- a/src/App/Search.php +++ b/src/App/Search.php @@ -27,16 +27,16 @@ final class Search $tok = trim($tok); if ($tok === '') continue; $ph = [ - ':t' . $i . 'a', - ':t' . $i . 'b', - ':t' . $i . 'c', - ':t' . $i . 'd', - ':t' . $i . 'e', - ':t' . $i . 'f', + 't' . $i . 'a', + 't' . $i . 'b', + 't' . $i . 'c', + 't' . $i . 'd', + 't' . $i . 'e', + 't' . $i . 'f', ]; - $conditions[] = "(title LIKE {$ph[0]} OR teaser_public LIKE {$ph[1]} OR description LIKE {$ph[2]} OR city LIKE {$ph[3]} OR region LIKE {$ph[4]} OR zip LIKE {$ph[5]})"; + $conditions[] = "(title LIKE :{$ph[0]} OR teaser_public LIKE :{$ph[1]} OR description LIKE :{$ph[2]} OR city LIKE :{$ph[3]} OR region LIKE :{$ph[4]} OR zip LIKE :{$ph[5]})"; foreach ($ph as $p) { - $params[ltrim($p, ':')] = '%' . $tok . '%'; + $params[$p] = '%' . $tok . '%'; } $i++; }