dhcp: fix a crash report

This commit is contained in:
Franco Fichtner 2016-02-02 10:28:52 +01:00
parent a8d880065e
commit 62a8d031e4

View File

@ -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']))