about summary refs log tree commit diff
path: root/sourcecodes/upload_structure_file.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/upload_structure_file.php')
-rw-r--r--sourcecodes/upload_structure_file.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/sourcecodes/upload_structure_file.php b/sourcecodes/upload_structure_file.php
index 0b980b25..2b235dd8 100644
--- a/sourcecodes/upload_structure_file.php
+++ b/sourcecodes/upload_structure_file.php
@@ -122,7 +122,9 @@ if($searchID!="")
   if ($UploadValue=="NO")
   {
       $fpdata = fopen($dir.$keyval."continuous_input_orig.txt","w");
-      fwrite($fpdata,$searchID);
+      if ($fpdata !== false) {
+        fwrite($fpdata,$searchID);
+      }
   }  
   shell_exec('./run_scripts/run_prep_input '.$keyval);
 ?>