diff options
Diffstat (limited to 'frontends/php/include/blocks.inc.php')
-rw-r--r-- | frontends/php/include/blocks.inc.php | 4 |
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. |