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:
Tony Murray
2022-08-30 12:55:37 -05:00
committed by GitHub
parent 797d73ad16
commit 6f5cf7727a
64 changed files with 343 additions and 324 deletions

View File

@@ -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;