summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dump_states.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-24 22:20:20 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-24 22:20:37 -0500
commit51a3acee8f721ce290b23edc8275703ae23596c4 (patch)
tree175e7fbf262ca248c01e0b7039b5d35921d20d25 /src/usr/local/www/diag_dump_states.php
parentad5fb4a06001fc545ff596bd258a2ea26c426f59 (diff)
downloadpfsense-51a3acee8f721ce290b23edc8275703ae23596c4.zip
pfsense-51a3acee8f721ce290b23edc8275703ae23596c4.tar.gz
Fix style
Diffstat (limited to 'src/usr/local/www/diag_dump_states.php')
-rwxr-xr-xsrc/usr/local/www/diag_dump_states.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/www/diag_dump_states.php b/src/usr/local/www/diag_dump_states.php
index a1c68e3..2cf3c22 100755
--- a/src/usr/local/www/diag_dump_states.php
+++ b/src/usr/local/www/diag_dump_states.php
@@ -67,13 +67,14 @@ require_once("interfaces.inc");
function get_ip($addr) {
$parts = explode(":", $addr);
- if (count($parts) == 2)
+ if (count($parts) == 2) {
return (trim($parts[0]));
- else {
+ } else {
/* IPv6 */
$parts = explode("[", $addr);
- if (count($parts) == 2)
+ if (count($parts) == 2) {
return (trim($parts[0]));
+ }
}
return ("");
OpenPOWER on IntegriCloud