Commit 9efc4138 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix a crash report

parent 88c99606
...@@ -101,10 +101,12 @@ if ($_POST) { ...@@ -101,10 +101,12 @@ if ($_POST) {
break; break;
} }
} }
if (is_array($config['qinqs']['qinqentry'])) { if (isset($config['qinqs']['qinqentry'])) {
foreach ($config['qinqs']['qinqentry'] as $qinq) foreach ($config['qinqs']['qinqentry'] as $qinq) {
if ($qinq['tag'] == $_POST['tag'] && $qinq['if'] == $_POST['if']) if ($qinq['tag'] == $_POST['tag'] && $qinq['if'] == $_POST['if']) {
$input_errors[] = gettext("A QinQ VLAN exists with this tag please remove it to use this tag with."); $input_errors[] = gettext("A QinQ VLAN exists with this tag please remove it to use this tag with.");
}
}
} }
if (!$input_errors) { if (!$input_errors) {
......
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