v2.16 - Fixed code type for detection of ACKNOWLEDGES information from event.get

This commit is contained in:
root 2023-08-17 06:34:36 -04:00
parent ededded428
commit a7196f8bc5

View File

@ -871,7 +871,7 @@
} }
// --- Collect and attach acknowledge messages for this event // --- 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) { foreach($thisEvent['result'][0]['acknowledges'] as $aCount=>$anAck) {
$mailData['ACKNOWLEDGES'][$aCount] = $anAck; $mailData['ACKNOWLEDGES'][$aCount] = $anAck;
$mailData['ACKNOWLEDGES'][$aCount]['_clock'] = zabbixTStoString($anAck['clock']); $mailData['ACKNOWLEDGES'][$aCount]['_clock'] = zabbixTStoString($anAck['clock']);