mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
implemented pending alerts list for event server
This commit is contained in:
parent
7b9170312c
commit
66d2fef3aa
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user