mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Make sure field_mapping is an array before trying to index into it
This commit is contained in:
parent
831c5e0f84
commit
845d8f533c
@ -134,7 +134,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
$english = array();
|
$english = array();
|
||||||
foreach($content['csv_fields'] as $index => $field) {
|
foreach($content['csv_fields'] as $index => $field) {
|
||||||
if($content['field_mapping'][$index]) continue;
|
if($content['field_mapping'][$index]) continue;
|
||||||
if($content['plugin_options']['field_mapping'][$index]) {
|
if(is_array($content['plugin_options']['field_mapping']) && $content['plugin_options']['field_mapping'][$index]) {
|
||||||
# Copy already set, but allow new file to update
|
# Copy already set, but allow new file to update
|
||||||
$content['field_mapping'][$index] = $content['plugin_options']['field_mapping'][$index];
|
$content['field_mapping'][$index] = $content['plugin_options']['field_mapping'][$index];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user