Commit 62a8d031 authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fix a crash report

parent a8d88006
......@@ -279,7 +279,7 @@ if (isset($_POST['submit'])) {
$input_errors[] = gettext("You cannot use the broadcast address in the ending subnet range.");
// Disallow a range that includes the virtualip
if (is_array($config['virtualip']['vip'])) {
if (isset($config['virtualip']['vip'])) {
foreach($config['virtualip']['vip'] as $vip) {
if($vip['interface'] == $if)
if($vip['subnet'] && is_inrange_v4($vip['subnet'], $_POST['range_from'], $_POST['range_to']))
......
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