summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-05-18 19:38:39 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-05-18 19:38:39 +0000
commit2be01c43daa730fb4dd6f378d23387bc2c997b9e (patch)
tree09062604a9a3f73eda5ada550073ea1b9a8bdcc2 /frontends/php/include
parent7a73408b2d21bb8a396d3ac3d5b6be5098d74672 (diff)
downloadzabbix-2be01c43daa730fb4dd6f378d23387bc2c997b9e.tar.gz
zabbix-2be01c43daa730fb4dd6f378d23387bc2c997b9e.tar.xz
zabbix-2be01c43daa730fb4dd6f378d23387bc2c997b9e.zip
Cosmetic changes.
git-svn-id: svn://svn.zabbix.com/trunk@775 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 38772f67..6f5f172c 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -12,6 +12,14 @@
$row=DBfetch($result);
return $row["cnt"];
}
+
+ function get_action_count_by_triggerid($triggerid)
+ {
+ $sql="select count(*) as cnt from actions where triggerid=$triggerid";
+ $result=DBselect($sql);
+ $row=DBfetch($result);
+ return $row["cnt"];
+ }
function check_right($right,$permission,$id)
{