summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/blocks.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-12 08:55:06 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-12 08:55:06 +0000
commit5240ec718c5c9a6befee0c421e224396fc7b747a (patch)
treeeb006bf74560b61e82a37e60c46b8448a8c8a511 /frontends/php/include/blocks.inc.php
parent412fd1bca83c5bb8229a9bfa3b9a77a5573db3ba (diff)
- [DEV-137] fixed SQL error for PGSQL8.3 (Artem)
- [DEV-137] fixed Apache Auth loop problem (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5759 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/blocks.inc.php')
-rw-r--r--frontends/php/include/blocks.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/blocks.inc.php b/frontends/php/include/blocks.inc.php
index 8443449c..1846b9a5 100644
--- a/frontends/php/include/blocks.inc.php
+++ b/frontends/php/include/blocks.inc.php
@@ -279,7 +279,7 @@ function make_system_summary(){
$event_sql = 'SELECT e.eventid, e.value, e.clock, e.objectid as triggerid, e.acknowledged, t.type '.
' FROM events e, triggers t '.
- ' WHERE e.object=0 '.
+ ' WHERE e.object='.EVENT_SOURCE_TRIGGERS.
' AND e.objectid='.$row_inf['triggerid'].
' AND t.triggerid=e.objectid '.
' AND e.value='.TRIGGER_VALUE_TRUE.
@@ -506,7 +506,7 @@ function make_latest_issues(){
$event_sql = 'SELECT e.eventid, e.value, e.clock, e.objectid as triggerid, e.acknowledged, t.type '.
' FROM events e, triggers t '.
- ' WHERE e.object=0 '.
+ ' WHERE e.object='.EVENT_SOURCE_TRIGGERS.
' AND e.objectid='.$row['triggerid'].
' AND t.triggerid=e.objectid '.
' AND e.value='.TRIGGER_VALUE_TRUE.