diff options
-rw-r--r-- | node_import_truncate.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/node_import_truncate.module b/node_import_truncate.module index a7a131d..9a88fb1 100644 --- a/node_import_truncate.module +++ b/node_import_truncate.module @@ -70,15 +70,14 @@ function node_import_truncate_form_submit($form, &$form_state) { $mass_delete = $form_state['values']['mass_delete']; variable_set('node_import_truncate', $mass_delete); - if (isset($form_state['values']['taskid']['#value'])) { - $taskid = $form_state['values']['taskid']['#value']; + if (isset($form_state['values']['taskid'])) { + $taskid = $form_state['values']['taskid']; $redirect = 'admin/content/node_import/' . $taskid; } else { $redirect = null; } if ($mass_delete == 1) { - $task = node_import_load($taskid); $type = ereg_replace('.*:', '', $task['type']); $batch = array( |