Browse Source

bug hunting

Anthony Bretaudeau 6 years ago
parent
commit
db6b7d7724
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/includes/TripalImporter/OBOImporter.inc

+ 1 - 1
tripal_chado/includes/TripalImporter/OBOImporter.inc

@@ -1333,7 +1333,7 @@ class OBOImporter extends TripalImporter {
       // Case 2:  The conflicting term is in the OBO file (ie. has a stanza) and
       // is obsolete and this one is not. Fix it by adding an (obsolete) suffix
       // to the name to avoid the conflict.
-      else if (in_array('is_obsolete', $check_stanza) and ($check_stanza['is_obsolete'][0] == 'true') and (!in_array('is_obsolete', $stanza) or ($stanza['is_obsolete'][0] != 'true'))) {
+      else if ($check_stanza['is_obsolete'][0] == 'true' and $stanza['is_obsolete'][0] != 'true') {
         $new_name = $check_cvterm->getValue('name') . ' (obsolete)';
         $check_cvterm->setValue('name', $new_name);
         $check_cvterm->update();