mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Misc webui code cleanups (#14242)
* Misc webui cleanups * Style * More * graphing fixes * More graph cleanups * more fixes, graphs and device pages * style
This commit is contained in:
@@ -168,7 +168,7 @@ class ConnectivityHelper
|
||||
public function ipFamily(): string
|
||||
{
|
||||
if ($this->family === null) {
|
||||
$this->family = preg_match('/6$/', $this->device->transport) ? 'ipv6' : 'ipv4';
|
||||
$this->family = preg_match('/6$/', $this->device->transport ?? '') ? 'ipv6' : 'ipv4';
|
||||
}
|
||||
|
||||
return $this->family;
|
||||
|
Reference in New Issue
Block a user