Skip to content
Snippets Groups Projects
Commit 653017ef authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Make sure target array is always initialized.

parent 21a02ee9
No related branches found
No related tags found
No related merge requests found
......@@ -519,6 +519,7 @@ function feeds_ui_mapping_form($form, &$form_state, $importer) {
}
$targets = $importer->processor->getMappingTargets();
$target_options = _feeds_ui_format_options($targets);
$legend['targets'] = array();
foreach ($targets as $k => $target) {
$legend['targets'][$k]['name']['#markup'] = empty($target['name']) ? $k : $target['name'];
$legend['targets'][$k]['description']['#markup'] = empty($target['description']) ? '' : $target['description'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment