mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Missing in select (#12771)
This commit is contained in:
@@ -83,7 +83,7 @@ class RunAlerts
|
|||||||
{
|
{
|
||||||
$obj = [];
|
$obj = [];
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$device = dbFetchRow('SELECT hostname, sysName, sysDescr, sysContact, os, type, ip, hardware, version, purpose, notes, uptime, status, status_reason, locations.location FROM devices LEFT JOIN locations ON locations.id = devices.location_id WHERE device_id = ?', [$alert['device_id']]);
|
$device = dbFetchRow('SELECT hostname, sysName, sysDescr, sysContact, os, type, ip, hardware, version, serial, features, purpose, notes, uptime, status, status_reason, locations.location FROM devices LEFT JOIN locations ON locations.id = devices.location_id WHERE device_id = ?', [$alert['device_id']]);
|
||||||
$attribs = get_dev_attribs($alert['device_id']);
|
$attribs = get_dev_attribs($alert['device_id']);
|
||||||
|
|
||||||
$obj['hostname'] = $device['hostname'];
|
$obj['hostname'] = $device['hostname'];
|
||||||
|
|||||||
Reference in New Issue
Block a user