Explorar o código

Tripal 2.1 Beta2 release

Stephen Ficklin %!s(int64=9) %!d(string=hai) anos
pai
achega
ba1bda64ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_core/api/tripal_core.chado_schema.api.inc

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

@@ -375,7 +375,7 @@ function chado_get_schema($table) {
   // If the module_invoke_all returned nothing then let's make sure there isn't
   // If the module_invoke_all returned nothing then let's make sure there isn't
   // An API call we can call directly.  The only time this occurs is
   // An API call we can call directly.  The only time this occurs is
   // during an upgrade of a major Drupal version and tripal_core is disabled.
   // during an upgrade of a major Drupal version and tripal_core is disabled.
-  if ((!$table_arr or count(array_keys(table_array) == 0)) and
+  if ((!$table_arr or !is_array($table_arr)) and
         function_exists('tripal_core_' . $hook_name)) {
         function_exists('tripal_core_' . $hook_name)) {
     $api_hook = "tripal_core_" . $hook_name;
     $api_hook = "tripal_core_" . $hook_name;
     $table_arr = $api_hook();
     $table_arr = $api_hook();