ソースを参照

Tripal 2.1 Beta2 release

Stephen Ficklin 9 年 前
コミット
ba1bda64ff
1 ファイル変更1 行追加1 行削除
  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
   // 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.
-  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)) {
     $api_hook = "tripal_core_" . $hook_name;
     $table_arr = $api_hook();