summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-12 11:46:06 (GMT)
committerErmal <eri@pfsense.org>2014-11-12 11:46:06 (GMT)
commit285acd604006006f4e5b811bdeb178fb126da2db (patch)
tree2e5b65fa0378423fa8fc292cbbefc3a229aaa0a0
parent39f93e00ca8a3bb4aae589ba0a99a192fbdd5113 (diff)
downloadunivnautes-285acd604006006f4e5b811bdeb178fb126da2db.zip
univnautes-285acd604006006f4e5b811bdeb178fb126da2db.tar.gz
univnautes-285acd604006006f4e5b811bdeb178fb126da2db.tar.bz2
Oops do the right thing here by passing proper argument rather than breaking the ipsec status page. Ticket #3955
-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++;