diff --git a/html/pages/devices.php b/html/pages/devices.php index df13748855..9c203c5445 100644 --- a/html/pages/devices.php +++ b/html/pages/devices.php @@ -16,7 +16,7 @@ if ($data['os']) { echo(""); } } @@ -32,7 +32,7 @@ if ($data['version']) { echo(""); } } @@ -49,7 +49,7 @@ if ($data['hardware']) { echo('"); } } @@ -65,7 +65,7 @@ if ($data['features']) { echo('"); } } @@ -82,7 +82,7 @@ if ($data['location']) { echo('"); } } @@ -105,7 +105,7 @@ if ($_POST['version']) { $where .= " AND version = '".$_POST['version']."'"; } if ($_POST['hardware']) { $where .= " AND hardware = '".$_POST['hardware']."'"; } if ($_POST['features']) { $where .= " AND features = '".$_POST['features']."'"; } if ($_POST['location']) { $where .= " AND location = '".$_POST['location']."'"; } -if ($_GET['location']) { $where .= " AND location = '".$_GET['location']."'"; } +if ($_GET['location'] && !isset($_POST['location'])) { $where .= " AND location = '".$_GET['location']."'"; } if ($_GET['type']) { $where = "AND type = '$_GET[type]'"; } if ($_GET['location'] == "Unset") { $where .= " AND location = ''"; } @@ -114,6 +114,8 @@ if ($_GET['status'] == "alerted") { $sql = "SELECT * FROM devices " . $device_alert_sql . " GROUP BY `device_id` ORDER BY `ignore`, `status`, `os`, `hostname`"; } +echo $sql; + echo('
Device | Operating System | Platform | Uptime |
---|