From 8b05ef6db494e20e5582c9151d2515157fc9030f Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 19 Jul 2024 19:48:03 +0100 Subject: [PATCH] Updated url checks Signed-off-by: snipe --- resources/views/hardware/view.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 315a7f263d..c1a0a7d9f4 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -299,7 +299,7 @@
  • {{ $asset->model->manufacturer->name }}
  • @endcan - @if (($asset->model->manufacturer) && ($asset->model->manufacturer->url!='')) + @if (($asset->model) && ($asset->model->manufacturer) && ($asset->model->manufacturer->url!=''))
  • @@ -309,7 +309,7 @@
  • @endif - @if (($asset->model->manufacturer) && ($asset->model->manufacturer->support_url!='')) + @if (($asset->model) && ($asset->model->manufacturer) && ($asset->model->manufacturer->support_url!=''))
  • @@ -319,7 +319,7 @@
  • @endif - @if (($asset->model->manufacturer) && ($asset->model->manufacturer->warranty_lookup_url!='')) + @if (($asset->model) && ($asset->model->manufacturer) && ($asset->model->manufacturer->warranty_lookup_url!=''))