Commit f2d9d5e3 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic
Browse files

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

Change-Id: I6875cade878788bb8d8acd79f2ac3d120a1bf61c
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 6a0358f3
......@@ -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