summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-09-29 18:51:28 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-09-29 18:51:28 +0000
commitbe34f53881644ebadb2f2f0a0a186854b353bf4e (patch)
tree55389517cdebed56dad22aac0389fa6f7b371a44 /usr
parent067502de4f56df432a6babe2469b144000acb317 (diff)
downloadpfsense-be34f53881644ebadb2f2f0a0a186854b353bf4e.zip
pfsense-be34f53881644ebadb2f2f0a0a186854b353bf4e.tar.gz
Do not throw errors on empty arrays
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_ipsec.php4
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();
OpenPOWER on IntegriCloud