From 716725758da31e8afe9ef5848025128cd023d804 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 19 Nov 2021 12:21:56 -0600 Subject: [PATCH] Fix bug in Device::name() (#13543) --- app/Models/Device.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Device.php b/app/Models/Device.php index 5d63569d27..794ada3630 100644 --- a/app/Models/Device.php +++ b/app/Models/Device.php @@ -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 '';