summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-23 15:15:57 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-23 15:15:57 +0000
commita9f83c31ba4d18a9636ad3a9e9c2929f4fd48876 (patch)
treebca5da5739476d372032c8ee35c89e29d1685201 /frontends/php/items.php
parent5a99042a32fdc91ab2375230705e2d291b73d47d (diff)
downloadzabbix-a9f83c31ba4d18a9636ad3a9e9c2929f4fd48876.tar.gz
zabbix-a9f83c31ba4d18a9636ad3a9e9c2929f4fd48876.tar.xz
zabbix-a9f83c31ba4d18a9636ad3a9e9c2929f4fd48876.zip
- added rules for importing XML data (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3506 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index 29ff36d2..c60c62f2 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -569,12 +569,7 @@ include_once "include/page_header.php";
$error=new CCol($db_item["error"],"on");
}
- $applications = "";
- $db_applications = get_applications_by_itemid($db_item["itemid"]);
- while($db_app = DBfetch($db_applications))
- {
- $applications .= $db_app["name"].", ";
- }
+ $applications = $show_applications == 1 ? implode(', ', get_applications_by_itemid($db_item["itemid"], 'name')) : null;
$chkBox = new CCheckBox("group_itemid[]",NULL,NULL,$db_item["itemid"]);
if($db_item["templateid"] > 0) $chkBox->SetEnabled(false);
@@ -586,7 +581,7 @@ include_once "include/page_header.php";
$db_item["trends"],
item_type2str($db_item['type']),
$status,
- $show_applications == 1 ? trim($applications,", ") : NULL,
+ $applications,
$error
));
}