Test for arrach before foreach'ing. Reported-by: http://forum.pfsense.org/index.php/topic,32865.0.html

This commit is contained in:
Ermal 2011-02-01 19:32:10 +00:00
parent 4e8c89fdbe
commit b0899ee458

View File

@ -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']))