diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-09-29 18:51:28 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-09-29 18:51:28 +0000 |
commit | be34f53881644ebadb2f2f0a0a186854b353bf4e (patch) | |
tree | 55389517cdebed56dad22aac0389fa6f7b371a44 | |
parent | 067502de4f56df432a6babe2469b144000acb317 (diff) | |
download | pfsense-be34f53881644ebadb2f2f0a0a186854b353bf4e.zip pfsense-be34f53881644ebadb2f2f0a0a186854b353bf4e.tar.gz |
Do not throw errors on empty arrays
-rw-r--r-- | usr/local/www/diag_ipsec.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index ad6d5b4..3950a25 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -56,6 +56,10 @@ include("head.inc"); <td> <?php +if (!is_array($config['ipsec']['tunnel'])) { + $config['ipsec']['tunnel'] = array(); +} + /* query SAD */ $fd = @popen("/sbin/setkey -D", "r"); $sad = array(); |