mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
ipsec: fix crash report in widget
This commit is contained in:
parent
df6a7f8852
commit
3b638e408e
@ -49,7 +49,7 @@ if (isset($config['ipsec']['phase1'])) {
|
||||
|
||||
// parse configured tunnels
|
||||
foreach ($ipsec_status as $status_key => $status_value) {
|
||||
if (isset($status_value['children'])) {
|
||||
if (isset($status_value['children']) && is_array($status_value['children'])) {
|
||||
foreach($status_value['children'] as $child_status_key => $child_status_value) {
|
||||
$ipsec_tunnels[$child_status_key] = array('active' => false,
|
||||
'local-addrs' => $status_value['local-addrs'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user