summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-28 14:23:02 -0400
committerjim-p <jimp@pfsense.org>2011-07-28 14:24:46 -0400
commitd3347fdf2bbe02f1ab45da556f60f45133491851 (patch)
tree83b646a343f6a4b12e782e7547d4b93e6f9b58b4 /usr
parent4222087e90badb854274109fc32de422c5c25221 (diff)
downloadpfsense-d3347fdf2bbe02f1ab45da556f60f45133491851.zip
pfsense-d3347fdf2bbe02f1ab45da556f60f45133491851.tar.gz
Fix display of ssh port on anti-lockout rule display in GUI.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index da9abd1..8e61360 100755
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -409,11 +409,9 @@ if($_REQUEST['undodrag']) {
$sshport = "";
if (isset($config['system']['enablesshd'])) {
- $sshport = 22;
- if($config['system']['ssh']['port'] <> "")
- $sshport = $config['system']['ssh']['port'];
+ $sshport = ($config['system']['ssh']['port']) ? $config['system']['ssh']['port'] : 22;
}
- $sshport = "22<br/>";
+ $sshport = "{$sshport}<br/>";
?>
<tr valign="top" id="antilockout">
<td class="list">&nbsp;</td>
OpenPOWER on IntegriCloud