From 7994432aca2a6cfed441a21d32aa6f4da46aa7c3 Mon Sep 17 00:00:00 2001 From: Samuel Wolff Date: Wed, 20 Dec 2023 09:15:12 +0100 Subject: [PATCH] Noch mehr KindModel Fixes --- Model/KindModel.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Model/KindModel.php b/Model/KindModel.php index 2e2b7a1..21162af 100644 --- a/Model/KindModel.php +++ b/Model/KindModel.php @@ -93,14 +93,13 @@ class KindModel extends Database foreach ($data as $index => $value) { $sql .= $index . ", "; - $params[":" + $index] = $index; } $sql = substr($sql, 0, strlen($sql) - 2) . ") VALUES ("; foreach ($data as $value) { $sql .= ":" . $value . " ,"; - $params[":" + $value] = $value; + $params[":" . $value] = $value; } $sql = substr($sql, 0, strlen($sql) - 2) . ");";