diff options
author | Ermal <eri@pfsense.org> | 2010-05-18 17:33:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-18 17:36:44 +0000 |
commit | 01207fd8487803b40559c62cac65ffbebf5bfcab (patch) | |
tree | e92c1c5abd50c70f5e55a18504a46dab7f046077 /usr/local | |
parent | fe22a89b4e8014b1160edb3c9d176312ea3df6b2 (diff) | |
download | pfsense-01207fd8487803b40559c62cac65ffbebf5bfcab.zip pfsense-01207fd8487803b40559c62cac65ffbebf5bfcab.tar.gz |
Fixes #536. More fixes and optimizations on the various functions and status pages used for gateways [groups].
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index 51118d5..7d67570 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -74,9 +74,9 @@ $counter = 1; <table border="0" cellpadding="0" cellspacing="2"> <?php $monitor = $gateway['monitor']; - if(empty($monitor)) { - $monitor = $gateway['gateway']; - } + if(empty($monitor)) { + $monitor = $gateway['gateway']; + } switch($gateways_status[$monitor]['status']) { case "None": $online = "Online"; @@ -94,11 +94,11 @@ $counter = 1; $online = "Warning, Packetloss"; $bgcolor = "khaki"; break; - default: - $online = "Gathering data"; - } - echo "<tr><td bgcolor=\"$bgcolor\" > $online </td>"; - $counter++; + default: + $online = "Gathering data"; + } + echo "<tr><td bgcolor=\"$bgcolor\" > $online </td>"; + $counter++; ?> </table> </td> |