diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-07-03 14:22:03 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-07-03 14:22:03 +0000 |
commit | 0c4520d0e45b713f951555fcdb18341a2997a196 (patch) | |
tree | 35f421da680d744b23a2ab77379bdc1c88c8c14a /usr | |
parent | e7986ed7c693282972f0d745b1254144e0c24a1d (diff) | |
download | pfsense-0c4520d0e45b713f951555fcdb18341a2997a196.zip pfsense-0c4520d0e45b713f951555fcdb18341a2997a196.tar.gz |
Handle empty monitor address correctly
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index b5f3c27..f2c301d 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -57,6 +57,9 @@ $gateways_status = return_gateways_status(); <table border="0" cellpadding="0" cellspacing="2"> <?php $monitor = $gateway['monitor']; + if(empty($monitor)) { + $monitor = $gateway['gateway']; + } switch($gateways_status[$monitor]['status']) { case "None": $online = "Online"; |