Fixed bug.

This commit is contained in:
Garvin Hicking
2003-02-27 21:13:26 +00:00
parent e6b078b1f5
commit 53cb2eea7d
2 changed files with 5 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ $Source$
Experimental: Added $cfg['DefaultPropDisplay']. Enables vertical display
(optional, default off) of the columns. I didn't like to have to scroll in horizontal
directions, so with this mode you can see about 6 columns at once on a single screen.
* tbl_properties.inc.php3: Fixed bug when certain fields are not
enabled, they threw an undefined offset.
2003-02-26 Garvin Hicking <me@supergarv.de>
* lang/german-*: better grammar. ;)

View File

@@ -329,11 +329,13 @@ while(@list($header_nr, $header_val) = @each($header_cells)) {
<th align="right"><?php echo $header_val; ?></th>
<?php
for ($j = 0; $j < count($content_cells); $j++) {
if (isset($content_cells[$j][$i]) && $content_cells[$j][$i] != '') {
$bgcolor = ($j % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo'];
?>
<td bgcolor="<?php echo $bgcolor; ?>"><?php echo $content_cells[$j][$i]; ?></td>
<?php
}
}
echo "\n" . '</tr>' . "\n";
$i++;