summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-25 17:49:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-25 17:49:40 +0000
commit418830933a9a5cf1d129bda02968b0cfc839f922 (patch)
treec6e0f7abd1f4731f0bdd5991db9c85aea6884235
parent2bae67ba0abe96b01e9bfcf46fcd4649d222e181 (diff)
downloadpfsense-418830933a9a5cf1d129bda02968b0cfc839f922.zip
pfsense-418830933a9a5cf1d129bda02968b0cfc839f922.tar.gz
Use isset() for enable serial checks
-rwxr-xr-xusr/local/www/system_advanced.php6
1 files 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) {
<tr>
<td width="22%" valign="top" class="vncell">&nbsp;</td>
<td width="78%" class="vtable">
- <input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if ($pconfig['enableserial']) echo "checked"; ?> onclick="enable_change(false)">
+ <input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> onclick="enable_change(false)">
<strong>This will enable the first serial port with 9600/8/N/1</strong>
</td>
</tr>
OpenPOWER on IntegriCloud