diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index efeca9f16..bcb1abe73 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -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."/"; } diff --git a/html/pages/device/overview/c6kxbar.inc.php b/html/pages/device/overview/c6kxbar.inc.php index 0e9c7a358..fff882aa4 100644 --- a/html/pages/device/overview/c6kxbar.inc.php +++ b/html/pages/device/overview/c6kxbar.inc.php @@ -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(" ".$entity['entPhysicalName']."