Commit ba555a53 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix a crash report

(cherry picked from commit ba9bbebe)
parent 4b5ae89f
...@@ -612,7 +612,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -612,7 +612,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors); do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors);
break; break;
case "none": case "none":
if (is_array($config['virtualip']['vip'])) { if (isset($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vip) { foreach ($config['virtualip']['vip'] as $vip) {
if (is_ipaddrv4($vip['subnet']) && $vip['interface'] == $if) { if (is_ipaddrv4($vip['subnet']) && $vip['interface'] == $if) {
$input_errors[] = gettext("This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration."); $input_errors[] = gettext("This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.");
......
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