diff options
author | Bill Marquette <billm@pfsense.org> | 2005-07-04 16:22:41 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-07-04 16:22:41 +0000 |
commit | d8bde4c51d36485e5c4443befc799cf7ce6a3e45 (patch) | |
tree | ebc1f0869a230886f3a09ae174e13a7ac583d34d /etc/inc/vpn.inc | |
parent | 39a7c0c344985e69e8046880844f527a82fd96e7 (diff) | |
download | pfsense-d8bde4c51d36485e5c4443befc799cf7ce6a3e45.zip pfsense-d8bde4c51d36485e5c4443befc799cf7ce6a3e45.tar.gz |
Clean up foreach() warnings if you don't use sasyncd
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 07fdc17..7f9ad42 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -39,6 +39,7 @@ function vpn_ipsec_failover_configure() { $sasyncd_text = ""; + if(isset($config['installedpackages']['sasyncd']['config'])) foreach($config['installedpackages']['sasyncd']['config'] as $sasyncd) { $enabled = isset($sasyncd['enable']); if(!$enabled) @@ -66,6 +67,7 @@ function vpn_ipsec_configure($ipchg = false) { $curwanip = get_current_wan_address(); /* set failover ip if defined */ + if(isset($config['installedpackages']['sasyncd']['config'])) foreach($config['installedpackages']['sasyncd']['config'] as $sasyncd) { if($sasyncd['ip'] <> "") $curwanip = $sasyncd['ip']; @@ -746,4 +748,4 @@ function vpn_endpoint_determine($tunnel, $curwanip) { return null; } -?>
\ No newline at end of file +?> |