mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
interfaces: fix a crash report
This commit is contained in:
parent
3542a33eb1
commit
ba9bbebe62
@ -612,7 +612,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors);
|
||||
break;
|
||||
case "none":
|
||||
if (is_array($config['virtualip']['vip'])) {
|
||||
if (isset($config['virtualip']['vip'])) {
|
||||
foreach ($config['virtualip']['vip'] as $vip) {
|
||||
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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user