From 1f82f5e0bc0d1cf99b49f75ffbcda365ac6f1d30 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 28 Jul 2011 14:23:02 -0400 Subject: [PATCH] Fix display of ssh port on anti-lockout rule display in GUI. --- usr/local/www/firewall_rules.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php index 4a9374bb86..a7b9585bbc 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
"; + $sshport = "{$sshport}
"; ?>