diff --git a/includes/crud.inc b/includes/crud.inc index 74fafc3..b63e1b7 100644 --- a/includes/crud.inc +++ b/includes/crud.inc @@ -266,7 +266,8 @@ class backup_migrate_item { if (!$this->get_id()) { $this->generate_id(); } - drupal_write_record($this->db_table, $this->to_array(), !empty($this->storage) ? $this->get_primary_key() : array()); + $record = $this->to_array(); + drupal_write_record($this->db_table, $record, !empty($this->storage) ? $this->get_primary_key() : array()); } /**