浏览代码

Issue #72: Updating API to include 2.1 improvements: 4ccf751

Stephen Ficklin 7 年之前
父节点
当前提交
76f1a633a1
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      legacy/tripal_feature/theme/tripal_feature.theme.inc

+ 5 - 0
legacy/tripal_feature/theme/tripal_feature.theme.inc

@@ -603,6 +603,11 @@ function tripal_feature_load_organism_feature_counts($organism) {
   $order = array();
   $names = array();
 
+  // We should not assume this table is present since it is a materialized view.
+  if (!chado_table_exists('organism_feature_count')) {
+      return NULL;
+  }
+
   // build the where clause for the SQL statement if we have a custom term list
   // we'll also keep track of the names the admin provided (if any) and the
   // order that the terms should appear.