diff options
Diffstat (limited to 'sourcecodes/net_structure.php')
| -rw-r--r-- | sourcecodes/net_structure.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sourcecodes/net_structure.php b/sourcecodes/net_structure.php index dfe14b99..49abbe06 100644 --- a/sourcecodes/net_structure.php +++ b/sourcecodes/net_structure.php @@ -109,11 +109,13 @@ if($searchID!="") $fpmain = fopen($TextinFile,"w"); - foreach($str_arr as $line) - { - $line=trim($line); - fwrite($fpmain, "$line\n"); + if ($fpmain !== false) { + foreach($str_arr as $line) + { + $line=trim($line); + fwrite($fpmain, "$line\n"); + } } } ?> |
