Commit f8ced5f7 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review

Merge "Bug 1847390: Undefined mysqldid var warning produced when adding new blocks"

parents dbb7d521 f2d9d5e3
......@@ -1253,7 +1253,7 @@ function insert_record($table, $dataobject, $primarykey=false, $returnpk=false)
$id = $dataobject->{$primarykey};
}
else {
$id = $mysqlid;
$id = isset($mysqlid) ? $mysqlid : $db->Insert_ID();
}
pseudo_trigger($table, $dataobject, (integer)$id, 'insert');
return $replykey ? (integer)$id : true;
......
Markdown is supported
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