Commit 40d30d5f authored by Nigel McNie's avatar Nigel McNie
Browse files

Given that update_record munges its $dataobject parameter and we're in php5...

Given that update_record munges its $dataobject parameter and we're in php5 land, this causes update_record to unset properties we might need later. Clone it inside the function so this doesn't happen. Yet again, dml--
parent ae8f0961
......@@ -1050,6 +1050,8 @@ function update_record($table, $dataobject, $where=null) {
global $db;
$dataobject = clone $dataobject;
if (empty($where)) {
$where = 'id';
if (!isset($dataobject->id) ) {
......
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