Commit a46014d1 authored by Franco Fichtner's avatar Franco Fichtner

interfaces/vlan: fix foreach warning

parent 75c5ddf1
......@@ -49,9 +49,10 @@ $a_vlans = &$config['vlans']['vlan'];
$portlist = get_interface_list();
/* add LAGG interfaces */
if (is_array($config['laggs']['lagg']) && count($config['laggs']['lagg'])) {
foreach ($config['laggs']['lagg'] as $lagg)
if (isset($config['laggs']['lagg'])) {
foreach ($config['laggs']['lagg'] as $lagg) {
$portlist[$lagg['laggif']] = $lagg;
}
}
if (is_numericint($_GET['id']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment