From d6090af5ddbae0cf3ccc84f4e8dbf025d3090f94 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Fri, 2 Jan 2026 01:39:01 +0100 Subject: [PATCH] dfdsf --- src/App/Search.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/App/Search.php b/src/App/Search.php index 54bebeb..2e20349 100644 --- a/src/App/Search.php +++ b/src/App/Search.php @@ -84,11 +84,21 @@ final class Search $bind['lim'] = (int)$limit; $stmt = $this->pdo->prepare($sql); - foreach ($bind as $name => $value) { - $paramName = ':' . ltrim($name, ':'); - $type = is_int($value) ? \PDO::PARAM_INT : \PDO::PARAM_STR; - $stmt->bindValue($paramName, $value, $type); - } + // Fix gebunden, um Parameter-Mismatch auszuschließen + $stmt->bindValue(':t0a', $bind['t0a'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':t0b', $bind['t0b'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':t0c', $bind['t0c'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':t0d', $bind['t0d'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':t0e', $bind['t0e'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':t0f', $bind['t0f'] ?? '', \PDO::PARAM_STR); + $stmt->bindValue(':glat', $bind['glat'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':glng', $bind['glng'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':latMin', $bind['latMin'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':latMax', $bind['latMax'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':lngMin', $bind['lngMin'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':lngMax', $bind['lngMax'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':radius', $bind['radius'] ?? null, \PDO::PARAM_STR); + $stmt->bindValue(':lim', $bind['lim'] ?? (int)$limit, \PDO::PARAM_INT); if (defined('APP_ENV') && APP_ENV === 'staging') { $ph = [];