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}
";
?>