Browse Source

yet another small fix.

Lacey Sanderson 5 years ago
parent
commit
bfe25210f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal/includes/tripal.importer.inc

+ 1 - 1
tripal/includes/tripal.importer.inc

@@ -111,7 +111,7 @@ function tripal_get_importer_form($form, &$form_state, $class) {
   // to change the order of their elements in reference to the default ones.
   // to change the order of their elements in reference to the default ones.
   $form = array_merge($form, $element_form);
   $form = array_merge($form, $element_form);
 
 
-  if (array_key_exists($class, 'use_button') and $class::$use_button] == TRUE) {
+  if ($class::$use_button == TRUE) {
     $form['button'] = [
     $form['button'] = [
       '#type' => 'submit',
       '#type' => 'submit',
       '#value' => t($class::$button_text),
       '#value' => t($class::$button_text),