소스 검색

Added ajustment to core generate vars for new return_arrays option

spficklin 12 년 전
부모
커밋
353e03802b
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      tripal_core/api/tripal_core.api.inc

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

@@ -1607,7 +1607,12 @@ function tripal_core_generate_chado_var($table, $values, $base_options = array()
   // the caller has requested results are always returned as
   // the caller has requested results are always returned as
   // an array
   // an array
   else {
   else {
-    return $results;
+  	if(!$results) {
+  		return array();
+  	}
+  	else {
+      return $results;
+  	}
   }
   }
 }
 }