mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix bug in Device::name() (#13543)
This commit is contained in:
@@ -188,9 +188,9 @@ class Device extends BaseModel
|
||||
$display = $this->displayName();
|
||||
|
||||
if (! Str::contains($display, $this->hostname)) {
|
||||
return $this->hostname;
|
||||
return (string) $this->hostname;
|
||||
} elseif (! Str::contains($display, $this->sysName)) {
|
||||
return $this->sysName;
|
||||
return (string) $this->sysName;
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user