about summary refs log tree commit diff
path: root/sourcecodes/bn_genenet.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bn_genenet.php')
-rw-r--r--sourcecodes/bn_genenet.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/sourcecodes/bn_genenet.php b/sourcecodes/bn_genenet.php
index 8fd5aea7..d443cee4 100644
--- a/sourcecodes/bn_genenet.php
+++ b/sourcecodes/bn_genenet.php
@@ -161,8 +161,10 @@ if($searchID!="")
   if ($UploadValue=="NO")
   {
       $fpdata = fopen($dir.$keyval."continuous_input_orig.txt","w");
-      fwrite($fpdata,$searchID);
-      fclose($fpdata);
+      if ($fpdata !== false) {
+        fwrite($fpdata,$searchID);
+        fclose($fpdata);
+      }
   }  
   $keyval = valid_keyval($keyval);
   shell_exec('./run_scripts/run_prep_input '.$keyval);