From 96db8da2c902f0424b79056e3085f27c8bfe83af Mon Sep 17 00:00:00 2001 From: liyang Date: Wed, 13 Nov 2024 16:59:01 +0800 Subject: [PATCH] * [bug#56986] Fix bug for host view. --- module/host/ui/view.html.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/host/ui/view.html.php b/module/host/ui/view.html.php index 7d220245e0..9f99df5841 100644 --- a/module/host/ui/view.html.php +++ b/module/host/ui/view.html.php @@ -47,7 +47,7 @@ detailBody zget($host, 'CD') == 'spug' ? h::tr ( h::th($lang->host->admin), - h::td(zget($host, 'admin')), + h::td(zget($host, 'admin')) ) : null, zget($host, 'CD') == 'spug' ? h::tr ( @@ -80,7 +80,8 @@ detailBody zget($host, 'CD') != 'spug' ? h::th($lang->host->osName) : null, zget($host, 'CD') != 'spug' ? h::td($host->osName) : null, h::th($lang->host->osVersion), - h::td(zget($host, 'CD') != 'spug' ? zget($lang->host->{$host->osName.'List'}, $host->osVersion) : $host->osName) + zget($host, 'CD') == 'spug' ? h::td($host->osVersion) : null, + zget($host, 'CD') != 'spug' && !empty($host->osName) ? h::td(zget($lang->host->{$host->osName.'List'}, $host->osVersion)) : null ), zget($host, 'CD') != 'spug' ? h::tr (