Commit 397ba442 authored by Franco Fichtner's avatar Franco Fichtner

interfaces/lagg: fix iteration warning

parent 1fd5d463
...@@ -43,7 +43,7 @@ function lagg_inuse($num) { ...@@ -43,7 +43,7 @@ function lagg_inuse($num) {
return true; return true;
} }
if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) { if (isset($config['vlans']['vlan'])) {
foreach ($config['vlans']['vlan'] as $vlan) { foreach ($config['vlans']['vlan'] as $vlan) {
if($vlan['if'] == $a_laggs[$num]['laggif']) if($vlan['if'] == $a_laggs[$num]['laggif'])
return true; return true;
......
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