Browse Source

Merge pull request #273 from statonlab/fix-typo

Fix typo that results in 'Use of undefined constant tripal_feature' error
Stephen Ficklin 7 years ago
parent
commit
cf420eb14f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tripal_chado/tripal_chado.module

+ 1 - 2
tripal_chado/tripal_chado.module

@@ -1118,7 +1118,6 @@ function tripal_feature_match_features_page($id) {
     // iterate through the matches and build the table for showing matches
     $header = array('Uniquename', 'Name', 'Type', 'Species', 'Synonyms');
     $rows = array();
-    $curr_match;
     while ($match = $results->fetchObject()) {
       $curr_match = $match;
       $synonyms = $match->synonyms;
@@ -1132,7 +1131,7 @@ function tripal_feature_match_features_page($id) {
       }
       // If we didn't find an entity ID we need to check nodes for
       // backwards compatibility with Tv2.
-      if (!$entity_id and module_exists(tripal_feature)) {
+      if (!$entity_id and module_exists('tripal_feature')) {
         $nid = chado_get_nid_from_id('feature', $curr_match->feature_id);
         $link = "node/" . $nid;
       }