diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-20 14:04:01 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-20 14:04:01 +0000 |
| commit | dac53ecd0f9665e64f6e0f523de62823bf0a2090 (patch) | |
| tree | 4f66ab367ad1df6bf615aa1161e64bc0355416eb /frontends/php/include/blocks.inc.php | |
| parent | fdf2f4adc3931e50e59c87517613d6fac71b8d4c (diff) | |
- [DEV-122] improved "Events" screen, added "Event Details" screen (Artem)
- applied patch by scricca: added Host-profiles to export/import (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5508 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/blocks.inc.php')
| -rw-r--r-- | frontends/php/include/blocks.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/blocks.inc.php b/frontends/php/include/blocks.inc.php index 4316067f..20b733f3 100644 --- a/frontends/php/include/blocks.inc.php +++ b/frontends/php/include/blocks.inc.php @@ -288,7 +288,7 @@ function make_system_summary($available_hosts=false){ //actions $actions= new CTable(' - '); - $sql='SELECT COUNT(a.alertid) as all'. + $sql='SELECT COUNT(a.alertid) as cnt'. ' FROM alerts a,functions f,items i,events e'. ' WHERE a.eventid='.$row_inf_event['eventid']. ' AND e.eventid = a.eventid'. @@ -298,7 +298,7 @@ function make_system_summary($available_hosts=false){ $alerts=DBfetch(DBselect($sql)); - if(isset($alerts['all']) && ($alerts['all'] > 0)){ + if(isset($alerts['cnt']) && ($alerts['cnt'] > 0)){ $mixed = 0; // Sent $sql='SELECT COUNT(a.alertid) as sent '. @@ -581,7 +581,7 @@ function make_latest_issues($available_hosts=false){ //actions $actions= new CTable(' - '); - $sql='SELECT COUNT(a.alertid) as all '. + $sql='SELECT COUNT(a.alertid) as cnt '. ' FROM alerts a,functions f,items i,events e'. ' WHERE a.eventid='.$row_event['eventid']. ' AND e.eventid = a.eventid'. @@ -591,7 +591,7 @@ function make_latest_issues($available_hosts=false){ $alerts=DBfetch(DBselect($sql)); - if(isset($alerts['all']) && ($alerts['all'] > 0)){ + if(isset($alerts['cnt']) && ($alerts['cnt'] > 0)){ $sql='SELECT COUNT(a.alertid) as sent '. ' FROM alerts a,functions f,items i,events e'. ' WHERE a.eventid='.$row_event['eventid']. |
