diff options
-rw-r--r-- | usr/local/www/widgets/widgets/ipsec.widget.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/ipsec.widget.php b/usr/local/www/widgets/widgets/ipsec.widget.php index 8d29e6a..f33b4e6 100644 --- a/usr/local/www/widgets/widgets/ipsec.widget.php +++ b/usr/local/www/widgets/widgets/ipsec.widget.php @@ -60,10 +60,10 @@ if (isset($config['ipsec']['phase1'])) { ?> $ipsec_status['query'] = array(); $ipsec_status['query']['ikesalist'] = array(); $ipsec_status['query']['ikesalist']['ikesa'] = array(); - } else if (is_array($ipsec_status['query']['ikesalist'])) { + } else if (!is_array($ipsec_status['query']['ikesalist'])) { $ipsec_status['query']['ikesalist'] = array(); $ipsec_status['query']['ikesalist']['ikesa'] = array(); - } else if (is_array($ipsec_status['query']['ikesalist']['ikesa'])) + } else if (!is_array($ipsec_status['query']['ikesalist']['ikesa'])) $ipsec_status['query']['ikesalist']['ikesa'] = array(); $ipsec_detail_array = array(); |