소스 검색

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'];