Browse Source

Fixed bug with listing chado version (if less than 1.2)

Stephen Ficklin 10 years ago
parent
commit
824d52ff28
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tripal_core/api/tripal_core.chado_schema.api.inc

+ 3 - 1
tripal_core/api/tripal_core.chado_schema.api.inc

@@ -214,7 +214,9 @@ function chado_get_version($exact = FALSE, $warn_if_unsupported = FALSE) {
     if (!$v) {
       $version =  "1.11 or older";
     }
-    $version =  $v->value;
+    else {
+      $version =  $v->value;
+    }
   }
 
   // next get the exact Chado version that is installed