summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-06-08 14:50:35 -0700
committerN0YB <Al_Stu@Frontier.com>2014-06-08 14:50:35 -0700
commit529ba86a3fc03a9a370c179ea73eb147ae2ef0dc (patch)
tree0b6a43141a5fad781122afaca7ea7759dd9c541f
parent1f47798a53edc1ea3a21162ed8a1e7aaad23b73b (diff)
downloadpfsense-529ba86a3fc03a9a370c179ea73eb147ae2ef0dc.zip
pfsense-529ba86a3fc03a9a370c179ea73eb147ae2ef0dc.tar.gz
Populate gateway address field with tilde if there is no address or friendly interface.
This is to match the update data.
-rw-r--r--usr/local/www/widgets/widgets/gateways.widget.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php
index 50011e5..80d9899 100644
--- a/usr/local/www/widgets/widgets/gateways.widget.php
+++ b/usr/local/www/widgets/widgets/gateways.widget.php
@@ -78,6 +78,8 @@ $counter = 1;
echo htmlspecialchars(get_interface_gateway($gateway['friendlyiface']));
if($gateway['ipprotocol'] == "inet6")
echo htmlspecialchars(get_interface_gateway_v6($gateway['friendlyiface']));
+ if( (htmlspecialchars(get_interface_gateway($gateway['friendlyiface'])) == '') && (htmlspecialchars(get_interface_gateway_v6($gateway['friendlyiface'])) == '') )
+ echo htmlspecialchars("~");
}
$counter++;
?>
OpenPOWER on IntegriCloud