summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-12 12:46:06 +0100
committerErmal <eri@pfsense.org>2014-11-12 12:46:06 +0100
commit285acd604006006f4e5b811bdeb178fb126da2db (patch)
tree2e5b65fa0378423fa8fc292cbbefc3a229aaa0a0 /usr/local/www/widgets
parent39f93e00ca8a3bb4aae589ba0a99a192fbdd5113 (diff)
downloadpfsense-285acd604006006f4e5b811bdeb178fb126da2db.zip
pfsense-285acd604006006f4e5b811bdeb178fb126da2db.tar.gz
Oops do the right thing here by passing proper argument rather than breaking the ipsec status page. Ticket #3955
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/ipsec.widget.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php
index e4a7dfa..c5bc64e 100644
--- a/usr/local/www/widgets/widgets/ipsec.widget.php
+++ b/usr/local/www/widgets/widgets/ipsec.widget.php
@@ -72,7 +72,10 @@ if (isset($config['ipsec']['phase1'])){?>
continue;
}
- if (ipsec_phase1_status($ipsec_status, $ph1ent)) {
+ if (is_array($ipsec_status['query']) &&
+ is_array($ipsec_status['query']['ikesalist']) &&
+ is_array($ipsec_status['query']['ikesalist']['ikesa']) &&
+ ipsec_phase1_status($ipsec_status['query']['ikesalist']['ikesa'], $ph1ent)) {
/* tunnel is up */
$iconfn = "true";
$activecounter++;
OpenPOWER on IntegriCloud