summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_comments.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-25 10:27:05 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-25 10:27:05 +0000
commit8aee7a4bf11b6a36d74892f56d8937219cba0be0 (patch)
tree8cb0ef378685a801cc14e2228ca4bf7fe46238ff /frontends/php/tr_comments.php
parent4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63 (diff)
downloadzabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.gz
zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.xz
zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.zip
Cleanup of PHP code.
git-svn-id: svn://svn.zabbix.com/trunk@2357 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_comments.php')
-rw-r--r--frontends/php/tr_comments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/tr_comments.php b/frontends/php/tr_comments.php
index 9106f69f..81a7e9da 100644
--- a/frontends/php/tr_comments.php
+++ b/frontends/php/tr_comments.php
@@ -47,8 +47,8 @@
?>
<?php
- $result=DBselect("select comments from triggers where triggerid=".$_REQUEST["triggerid"]);
- $comments=stripslashes(DBget_field($result,0,0));
+ $trigger=get_troigger_by_triggerid($_REQUEST["triggerid"]);
+ $comments=stripslashes($trigger["comments"]);
?>
<?php