Browse Source

Fixed a bug in the function to get the chado version.

spficklin 12 năm trước cách đây
mục cha
commit
b9b76946e3
2 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 1 1
      tripal_core/api/tripal_core.api.inc
  2. 1 2
      tripal_stock/tripal_stock.module

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

@@ -2903,7 +2903,7 @@ function tripal_core_set_chado_version() {
   if (!$chado_exists) {
     // if it's not in the drupal database check to see if it's specified in the $db_url
     // in the settings.php
-    if (!array_key_exists('chado', $db_url)) {
+    if (!is_array($db_url) or !array_key_exists('chado', $db_url)) {
       // if it's not in the drupal database or specified in the $db_url then
       // return uninstalled as the version
       return 'not installed';

+ 1 - 2
tripal_stock/tripal_stock.module

@@ -292,8 +292,7 @@ function tripal_stock_theme() {
     'tripal_organism_stocks' => array(
        'arguments' => array('node' => NULL),
        'template' => 'tripal_organism_stocks',
-    ),
-    
+    ),    
   );
 }