git-svn-id: http://www.observium.org/svn/observer/trunk@2726 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-15 15:23:56 +00:00
parent d860e0bb19
commit 32793c1658
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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."/";
}
+2 -1
View File
@@ -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>