I accidentally the whole type selection on the devices page. Fixed.

git-svn-id: http://www.observium.org/svn/observer/trunk@2004 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans 2011-04-01 15:55:42 +00:00
parent 75e9d0a9e5
commit 92cff2a365

View File

@ -1,12 +1,12 @@
<?php
if ($_POST['hostname']) { $where = " AND hostname LIKE '%".mres($_POST['hostname'])."%'"; }
if ($_POST['os']) { $where = " AND os = '".mres($_POST['os'])."'"; }
if ($_POST['hostname']) { $where .= " AND hostname LIKE '%".mres($_POST['hostname'])."%'"; }
if ($_POST['os']) { $where .= " AND os = '".mres($_POST['os'])."'"; }
if ($_POST['version']) { $where .= " AND version = '".mres($_POST['version'])."'"; }
if ($_POST['hardware']) { $where .= " AND hardware = '".mres($_POST['hardware'])."'"; }
if ($_POST['features']) { $where .= " AND features = '".mres($_POST['features'])."'"; }
if ($_GET['type']) { $where .= " AND type = '" .mres($_GET[type]). "'"; }
# FIXME override
if (isset($_REQUEST['location']))
{
if ($_GET['location'] == "Unset") { $location_filter = ''; }
@ -138,4 +138,4 @@ while ($device = mysql_fetch_assoc($device_query))
echo("</table>");
?>
?>