mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2726 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -15,7 +15,7 @@ function generate_url($vars, $new_vars = array())
|
||||
|
||||
foreach ($vars as $var => $value)
|
||||
{
|
||||
if ($value != "" && strstr($var, "opt") === FALSE)
|
||||
if ($value == "0" || $value != "" && strstr($var, "opt") === FALSE)
|
||||
{
|
||||
$url .= $var ."=".$value."/";
|
||||
}
|
||||
|
||||
@@ -11,7 +11,8 @@ foreach($entity_state['group']['c6kxbar'] as $index => $entry)
|
||||
{
|
||||
if (is_integer($c6kxbar_rows/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$entity = dbFetchRow("SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?", array($device['device_id'], $index));
|
||||
// fixme i'm not sure if this is the correct way to decide what entphysical index it is. slotnum+1? :>
|
||||
$entity = dbFetchRow("SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?", array($device['device_id'], $index+1));
|
||||
|
||||
echo("<tr bgcolor=$row_colour>
|
||||
<td colspan=5 width=200><strong>".$entity['entPhysicalName']."</strong></td>
|
||||
|
||||
Reference in New Issue
Block a user