mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
src: pppoe iteration blues via crash reporter
This commit is contained in:
parent
bb55f6c08a
commit
c6ff30e4df
@ -471,7 +471,7 @@ include("head.inc");
|
||||
}
|
||||
/* tack on PPPoE or PPtP servers here */
|
||||
/* pppoe server */
|
||||
if (is_array($config['pppoes']['pppoe'])) {
|
||||
if (isset($config['pppoes']['pppoe'])) {
|
||||
foreach($config['pppoes']['pppoe'] as $pppoe) {
|
||||
if ($pppoe['mode'] == "server") {
|
||||
$ifent = "poes". $pppoe['pppoeid'];
|
||||
|
||||
@ -52,7 +52,7 @@ if ($_POST) {
|
||||
if (!is_numeric($pppoeid)) {
|
||||
continue;
|
||||
}
|
||||
if (is_array($config['pppoes']['pppoe'])) {
|
||||
if (isset($config['pppoes']['pppoe'])) {
|
||||
foreach ($config['pppoes']['pppoe'] as $pppoe) {
|
||||
if ($pppoe['pppoeid'] == $pppoeid) {
|
||||
vpn_pppoe_configure($pppoe);
|
||||
|
||||
@ -37,7 +37,8 @@ function vpn_pppoe_get_id()
|
||||
global $config;
|
||||
|
||||
$vpnid = 1;
|
||||
if (is_array($config['pppoes']['pppoe'])) {
|
||||
|
||||
if (isset($config['pppoes']['pppoe'])) {
|
||||
foreach ($config['pppoes']['pppoe'] as $pppoe) {
|
||||
if ($vpnid == $pppoe['pppoeid']) {
|
||||
$vpnid++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user