mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/12786] Array_merge instead copy array parts
nickvergessen proposed this PHPBB3-12786
This commit is contained in:
parent
c9da9ec858
commit
4cec5bcd55
@ -135,13 +135,10 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration
|
||||
{
|
||||
foreach ($this->profilefield_language_data as $language_data)
|
||||
{
|
||||
$insert_buffer->insert(array(
|
||||
$insert_buffer->insert(array_merge(array(
|
||||
'field_id' => $field_id,
|
||||
'lang_id' => $lang_id,
|
||||
'option_id' => $language_data['option_id'],
|
||||
'field_type' => $language_data['field_type'],
|
||||
'lang_value' => $language_data['lang_value'],
|
||||
));
|
||||
), $language_data));
|
||||
}
|
||||
}
|
||||
$this->db->sql_freeresult($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user