If there's only one export definition, select it by default

This commit is contained in:
Nathan Gray 2011-01-26 01:00:41 +00:00
parent 4759228faf
commit a62484d106

View File

@ -76,6 +76,9 @@ class importexport_export_ui {
}
unset($definition);
}
if(count($sel_options['definition']) == 2 && !$content['definition']) {
$content['definition'] = end($sel_options['definition']);
}
unset($definitions);
$sel_options['definition']['expert'] = lang('Expert options');