mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Test for arrach before foreach'ing. Reported-by: http://forum.pfsense.org/index.php/topic,32865.0.html
This commit is contained in:
parent
4e8c89fdbe
commit
b0899ee458
@ -162,9 +162,11 @@ if ($config['pptpd']['mode'] == "server")
|
||||
if(have_ruleint_access("pptp"))
|
||||
$iflist['pptp'] = "PPTP VPN";
|
||||
|
||||
foreach ($config['pppoes']['pppoe'] as $pppoes)
|
||||
if (($pppoes['mode'] == 'server') && have_ruleint_access("pppoe"))
|
||||
$iflist['pppoe'] = "PPPoE Server";
|
||||
if (is_array($config['pppoes']['pppoe'])) {
|
||||
foreach ($config['pppoes']['pppoe'] as $pppoes)
|
||||
if (($pppoes['mode'] == 'server') && have_ruleint_access("pppoe"))
|
||||
$iflist['pppoe'] = "PPPoE Server";
|
||||
}
|
||||
|
||||
/* add ipsec interfaces */
|
||||
if (isset($config['ipsec']['enable']) || isset($config['ipsec']['mobileclients']['enable']))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user