소스 검색

Should not require foreign keys in table check in chado_node_generate_tokens

Stephen Ficklin 9 년 전
부모
커밋
044952039b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tripal_core/api/tripal_core.chado_nodes.title_and_path.inc

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

@@ -1268,7 +1268,7 @@ function chado_node_generate_tokens($base_table, $token_prefix = FALSE, $locatio
 
   // RECURSION:
   // Follow the foreign key relationships recursively
-  foreach ($table_descrip['foreign keys'] as $table => $details) {
+  foreach (array_key_exists('foreign keys', $table_descrip) and $table_descrip['foreign keys'] as $table => $details) {
     foreach ($details['columns'] as $left_field => $right_field) {
       if (empty($token_prefix)) {
         $sub_token_prefix = $base_table . '.' . $left_field;