From f9e209e5600fa45bbe15931a1b9c5ca6f5863c1b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 15 Sep 2005 01:04:38 +0000 Subject: [PATCH] Do not write out line unless it has contents --- usr/local/www/system_advanced.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index e13ee7907b..aa78b3a28c 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -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']))