소스 검색

Fixed a small bug in tripal_core_set_chado_version() where the active db wasn't switched back to drupal

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

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

@@ -2867,7 +2867,7 @@ function tripal_core_set_chado_version() {
   ."WHERE CV.name = 'chado_properties' and CVT.name = 'version'";
   ."WHERE CV.name = 'chado_properties' and CVT.name = 'version'";
   $previous_db = tripal_db_set_active('chado');
   $previous_db = tripal_db_set_active('chado');
   $v = db_fetch_object(db_query($sql));
   $v = db_fetch_object(db_query($sql));
-  $previous_db = tripal_db_set_active('chado');
+  tripal_db_set_active($previous_db);
 
 
   // if we don't have a version in the chadoprop table then it must be
   // if we don't have a version in the chadoprop table then it must be
   // v1.11 or older
   // v1.11 or older