implemented pending alerts list for event server

This commit is contained in:
alejandro.campos@artica.es 2023-07-21 11:53:04 +02:00
parent 7b9170312c
commit 66d2fef3aa

View File

@ -187,6 +187,11 @@ class AlertsList
} }
/**
* Draw table.
*
* @return void
*/
public function drawTable() public function drawTable()
{ {
global $config; global $config;
@ -237,8 +242,6 @@ class AlertsList
$decoded_data = json_decode($decoded_data, true); $decoded_data = json_decode($decoded_data, true);
if (is_array($decoded_data) === true) { if (is_array($decoded_data) === true) {
hd("&&&&&&&&&&&&&&&&&", true);
hd($decoded_data[3]['type'], true);
// Access the second element of $decoded_data (index 1) to get 'alias' and 'type'. // Access the second element of $decoded_data (index 1) to get 'alias' and 'type'.
$tmp->agentAlias = isset($decoded_data[1]['alias']) ? $decoded_data[1]['alias'] : null; $tmp->agentAlias = isset($decoded_data[1]['alias']) ? $decoded_data[1]['alias'] : null;
$tmp->alertType = isset($decoded_data[3]['type']) ? $decoded_data[3]['type'] : null; $tmp->alertType = isset($decoded_data[3]['type']) ? $decoded_data[3]['type'] : null;