mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* fix: Correct the use of GetContacts() #5012 * small update * array set * Properly check the results
This commit is contained in:
committed by
Tony Murray
parent
8f96b14975
commit
b30161b80c
@@ -111,7 +111,12 @@ function IssueAlert($alert)
|
||||
}
|
||||
|
||||
if ($config['alert']['fixed-contacts'] == false) {
|
||||
$alert['details']['contacts'] = GetContacts($alert['details']['rule']);
|
||||
if (empty($alert['query'])) {
|
||||
$alert['query'] = GenSQL($alert['rule']);
|
||||
}
|
||||
$sql = $alert['query'];
|
||||
$qry = dbFetchRows($sql, array($alert['device_id']));
|
||||
$alert['details']['contacts'] = GetContacts($qry);
|
||||
}
|
||||
|
||||
$obj = DescribeAlert($alert);
|
||||
|
Reference in New Issue
Block a user