Unverified Commit bfc8f665 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(dhcp) Fix PHP error in dhcp plugin

issue #6140
Showing with 2 additions and 1 deletion
+2 -1
......@@ -97,9 +97,10 @@ class DhcpSectionsAttribute extends DialogOrderedArrayAttribute
];
}
} else {
$ip = $dhcpObject->getStatement('fixed-address');
return [
['html' => $link],
$dhcpObject->getStatement('fixed-address'),
(($ip === NULL) ? '' : $ip),
preg_replace('/^[^ ]+ /', '', (isset($dhcpObject->dhcpHWAddress) ? $dhcpObject->dhcpHWAddress : '')),
];
}
......
Supports Markdown
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