Only use the translation from wizard if it's there, otherwise leave it alone

This commit is contained in:
Nathan Gray 2011-12-09 17:49:22 +00:00
parent 867b0f5343
commit d93f9f4869

View File

@ -163,7 +163,7 @@ class importexport_export_csv implements importexport_iface_export_record
$fields = $wizard->get_export_fields(); $fields = $wizard->get_export_fields();
foreach($this->mapping as $field => &$label) foreach($this->mapping as $field => &$label)
{ {
$label = $fields[$field]; if($fields[$field]) $label = $fields[$field];
} }
} catch (Exception $e) { } catch (Exception $e) {
translation::add_app($appname); translation::add_app($appname);