mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge pull request #12411 from ptica/patch-1
Avoid undefined index: null
This commit is contained in:
commit
a1a1983a7a
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ class DboSource extends DataSource {
|
|||
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$schema = $Model->schema();
|
||||
$valueInsert[] = $this->value($values[$i], $Model->getColumnType($fields[$i]), isset($schema[$fields[$i]]) ? $schema[$fields[$i]]['null'] : true);
|
||||
$valueInsert[] = $this->value($values[$i], $Model->getColumnType($fields[$i]), isset($schema[$fields[$i]]['null']) ? $schema[$fields[$i]]['null'] : true);
|
||||
$fieldInsert[] = $this->name($fields[$i]);
|
||||
if ($fields[$i] === $Model->primaryKey) {
|
||||
$id = $values[$i];
|
||||
|
|
Loading…
Add table
Reference in a new issue