From 6d1e4bb80582fe287d5fb4b8b11f2eee8c004bfb Mon Sep 17 00:00:00 2001 From: izmeez Date: Wed, 30 Jun 2021 13:57:18 -0500 Subject: [PATCH] Issue #3022206 by izmeez, roderik: [backup_migrate] php warning only pass variables by reference --- includes/crud.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } /**