Browse Source

Added some better fault tolerance if a bad table is given to the chado select API function

spficklin 12 years ago
parent
commit
a040660c76
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tripal_core/api/tripal_core.api.inc

+ 1 - 0
tripal_core/api/tripal_core.api.inc

@@ -1034,6 +1034,7 @@ function tripal_core_chado_select($table, $columns, $values, $options = NULL) {
   	  watchdog('tripal_core', "tripal_core_chado_select: The field '%field' does not exist ".
   	    "for the table '%table'.  Cannot perform query.", 
   	    array('%field' => $field, '%table' => $table), WATCHDOG_ERROR);
+  	  return array();
   	}
   	
     $select[] = $field;