mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
dhcpv6: missing string cast
This commit is contained in:
parent
b842980bb4
commit
f09d4e40f5
@ -184,7 +184,7 @@ class LeasesController extends ApiControllerBase
|
||||
$intf_descr = '';
|
||||
if (!empty($lease['if'])) {
|
||||
$intf = $lease['if'];
|
||||
$intf_descr = $config->interfaces->{$lease['if']}->descr ?: strtoupper($intf);
|
||||
$intf_descr = (string)$config->interfaces->$intf->descr ?: strtoupper($intf);
|
||||
} else {
|
||||
foreach ($if_ranges as $if_name => $if_range) {
|
||||
if (!empty($lease['address']) && Util::isIPInCIDR($lease['address'], $if_range)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user