Explorar o código

Fixed small bug in KEGG module

spficklin %!s(int64=14) %!d(string=hai) anos
pai
achega
54e9a0131b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();