Skip to content

Commit

Permalink
Issue #3022206 by izmeez, roderik: [backup_migrate] php warning only …
Browse files Browse the repository at this point in the history
…pass variables by reference
  • Loading branch information
izmeez authored and dsnopek committed Jun 30, 2021
1 parent 8728302 commit 6d1e4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/crud.inc
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 6d1e4bb

Please sign in to comment.