mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix bug in sysContacts email collection (#15325)
Also, include trace in log when an error occurs
This commit is contained in:
@@ -156,7 +156,7 @@ class AlertUtil
|
||||
$contacts = [];
|
||||
|
||||
foreach ($results as $result) {
|
||||
$device = DeviceCache::get($result);
|
||||
$device = DeviceCache::get($result['device_id']);
|
||||
$email = $device->getAttrib('override_sysContact_bool')
|
||||
? $device->getAttrib('override_sysContact_string')
|
||||
: $device->sysContact;
|
||||
|
Reference in New Issue
Block a user