Commit 3bc854aa authored by Nigel McNie's avatar Nigel McNie
Browse files

Further to the clone fix for update_record, only do the clone if the object is actually an object.

parent 9176ccdc
......@@ -1050,7 +1050,9 @@ function update_record($table, $dataobject, $where=null) {
global $db;
$dataobject = clone $dataobject;
if (is_object($dataobject)) {
$dataobject = clone $dataobject;
}
if (empty($where)) {
$where = '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