This commit is contained in:
Ad Schellevis 2015-03-25 21:26:42 +01:00
parent 564571c81d
commit bc1601085f

View File

@ -303,7 +303,10 @@ class Rules
$interface = $zone->interface->xpath("//" . $zone->interface);
if (count($interface) > 0) {
$interface = $interface[0];
$cpinterfaces[$interface->if->__toString()] = 1;
if ($interface->if != null) {
// check if interface exists before appending it.
$cpinterfaces[$interface->if->__toString()] = 1;
}
}
}