mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
git-svn-id: http://www.observium.org/svn/observer/trunk@118 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -10,7 +10,7 @@ if($_POST['delsrv']) {
|
||||
}
|
||||
}
|
||||
|
||||
$query = mysql_query("SELECT * FROM `services` AS S, `devices` AS D WHERE S.service_host = D.id ORDER BY hostname");
|
||||
$query = mysql_query("SELECT * FROM `services` AS S, `devices` AS D WHERE S.service_host = D.device_id ORDER BY hostname");
|
||||
while($device = mysql_fetch_array($query)) {
|
||||
$servicesform .= "<option value='" . $device[service_id] . "'>" . $device['service_id'] . "." . $device['hostname'] . " - " . $device['service_type'] . "</option>";
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ echo("<li class=" . $select['dev-graphs'] . ">
|
||||
</li>
|
||||
");
|
||||
|
||||
if(mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
|
||||
if(@mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
|
||||
|
||||
echo("
|
||||
<li class=" . $select['dev-enyphysical'] . ">
|
||||
|
||||
Reference in New Issue
Block a user