|
@@ -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();
|