diff --git a/html/includes/table/devices.inc.php b/html/includes/table/devices.inc.php
index 3cd85fee1..ed57e6c16 100644
--- a/html/includes/table/devices.inc.php
+++ b/html/includes/table/devices.inc.php
@@ -79,8 +79,7 @@ if (!empty($_POST['location']) && $_POST['location'] == 'Unset') {
if (!empty($_POST['location'])) {
$sql .= " AND `location` = ?";
- $param[] = mres($_POST['location']);
- $param[] = mres($_POST['location']);
+ $param[] = $_POST['location'];
}
if (!empty($_POST['group'])) {