Project

General

Profile

« Previous | Next » 

Revision 285acd60

Added by Ermal LUÇI over 10 years ago

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

View differences:

usr/local/www/widgets/widgets/ipsec.widget.php
72 72
			continue;
73 73
		}
74 74

  
75
		if (ipsec_phase1_status($ipsec_status, $ph1ent)) {
75
		if (is_array($ipsec_status['query']) &&
76
		    is_array($ipsec_status['query']['ikesalist']) &&
77
		    is_array($ipsec_status['query']['ikesalist']['ikesa']) &&
78
		    ipsec_phase1_status($ipsec_status['query']['ikesalist']['ikesa'], $ph1ent)) {
76 79
			/* tunnel is up */
77 80
			$iconfn = "true";
78 81
			$activecounter++;

Also available in: Unified diff