diff --git a/html/pages/device.php b/html/pages/device.php index da5f10dd8..06377d660 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -79,7 +79,7 @@ echo("
  • "); -if(@mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') { +if($config['enable_inventory'] && @mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') { echo("