Browse Source

Fix cvitjs warning on settings page.

Lacey Sanderson 6 years ago
parent
commit
1df58b8043
1 changed files with 4 additions and 1 deletions
  1. 4 1
      api/blast_ui.api.inc

+ 4 - 1
api/blast_ui.api.inc

@@ -888,7 +888,10 @@ function blast_ui_get_cvit_conf_text($genome_target = FALSE) {
   if ($cvit_conf) {
 
     // Retrieve the contents of the file.
-    $contents = file_get_contents($cvit_conf);
+    $contents = '';
+    if (file_exists($cvit_conf)) {
+      $contents = file_get_contents($cvit_conf);
+    }
 
     // If no genome target was provided then return the full file.
     if ($contents && $genome_target == FALSE) {