From a7196f8bc51a7430a274dec21c580fa855aabf18 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Aug 2023 06:34:36 -0400 Subject: [PATCH] v2.16 - Fixed code type for detection of ACKNOWLEDGES information from event.get --- mailGraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailGraph.php b/mailGraph.php index e587072..936a614 100644 --- a/mailGraph.php +++ b/mailGraph.php @@ -871,7 +871,7 @@ } // --- Collect and attach acknowledge messages for this event - if (sizeof($thisEvent['result'][0]['acknowledges']>0)) { + if (isset($thisEvent['result'][0]['acknowledges'])) { foreach($thisEvent['result'][0]['acknowledges'] as $aCount=>$anAck) { $mailData['ACKNOWLEDGES'][$aCount] = $anAck; $mailData['ACKNOWLEDGES'][$aCount]['_clock'] = zabbixTStoString($anAck['clock']);