- $insert = Env::v('csv_value');
- $values = Env::v('csv_user_value');
- $update = Env::v('csv_update');
+ if ($current != 'valid') {
+ $cpyfields = array('csv_value', 'csv_user_value', 'csv_cond_field',
+ 'csv_update', 'csv_action', 'csv_cond_field',
+ 'csv_cond', 'csv_cond_value', 'csv_cond_then',
+ 'csv_cond_else');
+ foreach ($cpyfields as $field) {
+ $_SESSION[$field] = Env::v($field);
+ }
+ }
+ $insert = $_SESSION['csv_value'];
+ $values = $_SESSION['csv_user_value'];
+ $update = $_SESSION['csv_update'];