Oops do the right thing here by passing proper argument rather than breaking the ipsec status page. Ticket #3955

This commit is contained in:
Ermal 2014-11-12 12:46:06 +01:00
parent 39f93e00ca
commit 285acd6040
1 changed files with 4 additions and 1 deletions

View File

@ -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++;