Browse Source

Fixed small bug in KEGG module

spficklin 13 years ago
parent
commit
54e9a0131b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tripal_analysis_kegg/tripal_analysis_kegg.module

+ 3 - 0
tripal_analysis_kegg/tripal_analysis_kegg.module

@@ -1114,6 +1114,9 @@ function tripal_analysis_kegg_load_feature_terms($feature) {
       ),         
    );
    $afeatureprops = tripal_core_chado_select('analysisfeatureprop',array('*'),$select);
+   if(!$afeatureprops){
+      return;
+   }
 
    // iterate through all of the KEGG properties for this feature
    $results = array();