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) . ");";