瀏覽代碼

bug hunting

Anthony Bretaudeau 6 年之前
父節點
當前提交
db6b7d7724
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();