summaryrefslogtreecommitdiffstats
path: root/frontends/php/events.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/events.php')
-rw-r--r--frontends/php/events.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/events.php b/frontends/php/events.php
index 718f3fa9..fbc661b8 100644
--- a/frontends/php/events.php
+++ b/frontends/php/events.php
@@ -345,7 +345,8 @@ include_once "include/page_header.php";
$sql='SELECT COUNT(a.alertid) as cnt_all'.
' FROM alerts a '.
- ' WHERE a.eventid='.$row['eventid'];
+ ' WHERE a.eventid='.$row['eventid'].
+ ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')';
$alerts=DBfetch(DBselect($sql));
@@ -355,6 +356,7 @@ include_once "include/page_header.php";
$sql='SELECT COUNT(a.alertid) as sent '.
' FROM alerts a '.
' WHERE a.eventid='.$row['eventid'].
+ ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'.
' AND a.status='.ALERT_STATUS_SENT;
$tmp=DBfetch(DBselect($sql));
@@ -364,6 +366,7 @@ include_once "include/page_header.php";
$sql='SELECT COUNT(a.alertid) as inprogress '.
' FROM alerts a '.
' WHERE a.eventid='.$row['eventid'].
+ ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'.
' AND a.status='.ALERT_STATUS_NOT_SENT;
$tmp=DBfetch(DBselect($sql));
@@ -372,13 +375,13 @@ include_once "include/page_header.php";
$sql='SELECT COUNT(a.alertid) as failed '.
' FROM alerts a '.
' WHERE a.eventid='.$row['eventid'].
+ ' AND a.alerttype in ('.ALERT_TYPE_MESSAGE.')'.
' AND a.status='.ALERT_STATUS_FAILED;
$tmp=DBfetch(DBselect($sql));
$alerts['failed'] = $tmp['failed'];
$mixed+=($alerts['failed'])?ALERT_STATUS_FAILED:0;
-
if($alerts['inprogress']){
$status = new CSpan(S_IN_PROGRESS,'orange');
}