Changeset 134 for branches


Ignore:
Timestamp:
01/25/05 10:49:35 (20 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Fix display glitch that causes an extra cell to be inserted if
a row element is undefined in printRow(). This may not be the
best fix; it may be better (and certainly simpler) just to
remove the line

print "<td></td>" if (!defined($element));

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r133 r134  
    318318  }
    319319
    320   foreach my $element (@$rowRef) {
    321     print "<td></td>" if (!defined($element));
     320ELEMENT:  foreach my $element (@$rowRef) {
     321    if (!defined($element)) {
     322      print "<td></td>\n";
     323      next ELEMENT;
     324    }
    322325    $element =~ s|\n|</br>|g;
    323326    print "<td>$element</td>\n";
Note: See TracChangeset for help on using the changeset viewer.