added inventory masking for gui

git-svn-id: http://www.observium.org/svn/observer/trunk@338 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-01-09 15:01:36 +00:00
parent 1ce89de53b
commit 8e40fbdfb6

View File

@@ -79,7 +79,7 @@ echo("<li class=" . $select['graphs'] . ">
</li>
");
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("<li class=" . $select['entphysical'] . ">
<a href='/device/" . $device['device_id'] . "/entphysical/'>