From 68be9802dd903b06d7d5810d0319d2c23534e0ce Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 14 Nov 2023 15:39:28 +0800 Subject: [PATCH] * hostModel: remove extra parentheses. --- module/host/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/host/model.php b/module/host/model.php index 468dc9e306..4775151988 100644 --- a/module/host/model.php +++ b/module/host/model.php @@ -383,7 +383,7 @@ class hostModel extends model if(isset($hostGroups[0])) { - foreach($hostGroups[0] as $host) $groupTree['children'][] = array('text' => htmlspecialchars($host->name), 'hostid' => $host->id)); + foreach($hostGroups[0] as $host) $groupTree['children'][] = array('text' => htmlspecialchars($host->name), 'hostid' => $host->id); } $treemap[0] = $groupTree; }