Store device group relationships in a pivot table.

This commit is contained in:
Tony Murray
2016-06-02 12:37:03 -05:00
parent 16b91f6a97
commit 009840bf8a
7 changed files with 173 additions and 16 deletions

View File

@@ -200,7 +200,7 @@ if($format == "graph") {
$where .= " AND ( ";
foreach( GetDevicesFromGroup($vars['group']) as $dev ) {
$where .= "device_id = ? OR ";
$sql_param[] = $dev['device_id'];
$sql_param[] = $dev;
}
$where = substr($where, 0, strlen($where)-3);
$where .= " )";