From 418830933a9a5cf1d129bda02968b0cfc839f922 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 25 Jun 2005 17:49:40 +0000 Subject: Use isset() for enable serial checks --- usr/local/www/system_advanced.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index b446628..d0e5cb3 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -183,7 +183,7 @@ if ($_POST) { fwrite($fout, $tty . "\n"); } } - if($pconfig['enableserial']) + if(isset($pconfig['enableserial'])) fwrite($fout, "ttyv0\t\"/usr/libexec/getty Pc\"\tcons25\t\ton\tsecure\n"); fclose($fout); @@ -193,7 +193,7 @@ if ($_POST) { fwrite($fout, $blrc . "\n"); } } - if($pconfig['enableserial']) + if(isset($pconfig['enableserial'])) fwrite($fout, "set console=comconsole\n"); fclose($fout); @@ -250,7 +250,7 @@ function update_description(itemnum) {   - onclick="enable_change(false)"> + onclick="enable_change(false)"> This will enable the first serial port with 9600/8/N/1 -- cgit v1.1