mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
kea: only emit value if found for consistency
This commit is contained in:
parent
b2e31eb56f
commit
e07789eebb
@ -69,8 +69,8 @@ function kea_staticmap($proto = null, $valid_addresses = true, $domain_fallback
|
||||
continue;
|
||||
}
|
||||
|
||||
$hostname = (string)$reservation->hostname;
|
||||
$description = (string)$reservation->description;
|
||||
$hostname = !empty((string)$reservation->hostname) ? (string)$reservation->hostname : null;
|
||||
$description = !empty((string)$reservation->description) ? (string)$reservation->description : null;
|
||||
|
||||
$subnet_node = $keav4->getNodeByReference("subnets.subnet4.{$reservation->subnet}");
|
||||
$domain = $domain_fallback;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user