Révision d8b011b8
Ajouté par Renato Botelho il y a plus de 10 ans
usr/local/www/vpn_pppoe_edit.php | ||
---|---|---|
43 | 43 |
global $config; |
44 | 44 |
|
45 | 45 |
$vpnid = 1; |
46 |
if (!is_array($config['pppoes']['pppoe'])) {
|
|
46 |
if (is_array($config['pppoes']['pppoe'])) { |
|
47 | 47 |
foreach ($config['pppoes']['pppoe'] as $pppoe) { |
48 |
if ($vpnid == $pppoe['id']) |
|
48 |
if ($vpnid == $pppoe['pppoeid'])
|
|
49 | 49 |
$vpnid++; |
50 | 50 |
else |
51 | 51 |
return $vpnid; |
Formats disponibles : Unified diff
Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple servers, it fixes #2286