dfdsf
This commit is contained in:
@@ -84,11 +84,21 @@ final class Search
|
|||||||
$bind['lim'] = (int)$limit;
|
$bind['lim'] = (int)$limit;
|
||||||
|
|
||||||
$stmt = $this->pdo->prepare($sql);
|
$stmt = $this->pdo->prepare($sql);
|
||||||
foreach ($bind as $name => $value) {
|
// Fix gebunden, um Parameter-Mismatch auszuschließen
|
||||||
$paramName = ':' . ltrim($name, ':');
|
$stmt->bindValue(':t0a', $bind['t0a'] ?? '', \PDO::PARAM_STR);
|
||||||
$type = is_int($value) ? \PDO::PARAM_INT : \PDO::PARAM_STR;
|
$stmt->bindValue(':t0b', $bind['t0b'] ?? '', \PDO::PARAM_STR);
|
||||||
$stmt->bindValue($paramName, $value, $type);
|
$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') {
|
if (defined('APP_ENV') && APP_ENV === 'staging') {
|
||||||
$ph = [];
|
$ph = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user