Explorar el Código

Fixed small bug in KEGG module

spficklin hace 13 años
padre
commit
54e9a0131b
Se han modificado 1 ficheros con 3 adiciones y 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();