Commit e3982882 authored by rmerrill's avatar rmerrill Committed by Richard Mansfield
Browse files

fix dml attempt to count undefined array

(cherry picked from commit 23670d2e5d77f930bfc79ecd5624ccf6e6b126e7)
parent 322674a7
......@@ -987,6 +987,7 @@ function insert_record($table, $dataobject, $primarykey=false, $returnpk=false)
$data = (array)$dataobject;
// Pull out data matching these fields
$ddd = array();
foreach ($columns as $column) {
if (isset($data[$column->name])) {
if ($column->name == $primarykey && empty($setfromseq)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment