Commit 0fd22dab authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix a crash report

parent efbffb0e
......@@ -41,9 +41,10 @@ $a_qinqs = &$config['qinqs']['qinqentry'];
$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 (count($portlist) < 1) {
......
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