Преглед на файлове

fix for the tripal contact obo that addresses problem on my local

Shawna Spoor преди 6 години
родител
ревизия
c8a0e23284
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tripal_chado/includes/TripalImporter/OBOImporter.inc

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

@@ -1119,7 +1119,7 @@ class OBOImporter extends TripalImporter {
     }
 
     // Get the object term.
-    if ($reference_term === TRUE) {
+    if ($reference_term === TRUE && !empty($oterm)) {
       $objterm = array();
       $objterm['id'] = $oterm['label'];
       $objterm['name'] = $oterm['obo_id'];