mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated where queries
This commit is contained in:
@ -17,12 +17,12 @@ $row_colour="#ffffff";
|
|||||||
|
|
||||||
$sql_array= array();
|
$sql_array= array();
|
||||||
if (!empty($device['hostname'])) {
|
if (!empty($device['hostname'])) {
|
||||||
$sql = ' WHERE `devices`.`hostname`=?';
|
$sql = ' `devices`.`hostname`=?';
|
||||||
$sql_array = array($device['hostname']);
|
$sql_array = array($device['hostname']);
|
||||||
$mac_sql = ' AND `D`.`hostname` = ?';
|
$mac_sql = ' AND `D`.`hostname` = ?';
|
||||||
$mac_array = array($device['hostname']);
|
$mac_array = array($device['hostname']);
|
||||||
} else {
|
} else {
|
||||||
$sql = ' WHERE 1';
|
$sql = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= ' AND `local_device_id` != 0 AND `remote_device_id` != 0 ';
|
$sql .= ' AND `local_device_id` != 0 AND `remote_device_id` != 0 ';
|
||||||
|
Reference in New Issue
Block a user