Noch mehr KindModel Fixes

This commit is contained in:
Samuel Wolff 2023-12-20 09:15:12 +01:00
parent 2c63e3c132
commit 7994432aca

View File

@ -93,14 +93,13 @@ class KindModel extends Database
foreach ($data as $index => $value) { foreach ($data as $index => $value) {
$sql .= $index . ", "; $sql .= $index . ", ";
$params[":" + $index] = $index;
} }
$sql = substr($sql, 0, strlen($sql) - 2) . ") VALUES ("; $sql = substr($sql, 0, strlen($sql) - 2) . ") VALUES (";
foreach ($data as $value) { foreach ($data as $value) {
$sql .= ":" . $value . " ,"; $sql .= ":" . $value . " ,";
$params[":" + $value] = $value; $params[":" . $value] = $value;
} }
$sql = substr($sql, 0, strlen($sql) - 2) . ");"; $sql = substr($sql, 0, strlen($sql) - 2) . ");";