Преглед на файлове

Fix typo that results in 'Use of undefined constant tripal_feature' error

Abdullah Almsaeed преди 7 години
родител
ревизия
e49de79bfc
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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;
       }