mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
"Removing unneeded code"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6229 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
473b414131
commit
6e1bacebf5
1 changed files with 1 additions and 2 deletions
|
@ -493,8 +493,7 @@ class DboSource extends DataSource {
|
||||||
$count = count($values);
|
$count = count($values);
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
$set = $this->value($values[$i], $model->getColumnType($fields[$i]));
|
$valueInsert[] = $this->value($values[$i], $model->getColumnType($fields[$i]));
|
||||||
$valueInsert[] = $set;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->execute('INSERT INTO ' . $this->fullTableName($model) . ' (' . join(',', $fieldInsert). ') VALUES (' . join(',', $valueInsert) . ')')) {
|
if ($this->execute('INSERT INTO ' . $this->fullTableName($model) . ' (' . join(',', $fieldInsert). ') VALUES (' . join(',', $valueInsert) . ')')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue