Noch mehr KindModel Fixes
This commit is contained in:
parent
2c63e3c132
commit
7994432aca
@ -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) . ");";
|
||||||
|
Loading…
Reference in New Issue
Block a user