Do not write out line unless it has contents

This commit is contained in:
Scott Ullrich 2005-09-15 01:04:38 +00:00
parent 6b769ce2e7
commit f9e209e560

View File

@ -210,7 +210,8 @@ if ($_POST) {
} else {
foreach($etc_ttys as $tty) {
if(stristr($tty,"ttyv0") <> true) {
fwrite($fout, $tty . "\n");
if($tty <> "")
fwrite($fout, $tty . "\n");
}
}
if(isset($pconfig['enableserial']))