Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -512,9 +512,11 @@ |
513 | 513 | $stripe = ''; |
514 | 514 | foreach ( $records as $r ) { |
515 | 515 | $stripe = $stripe ? '' : ' class="stripe"'; |
516 | | - $table .= "<tr$stripe>"; |
517 | | - if ( !is_array( $r ) ) $table .= $r; # Just add as HTML content if not a row |
518 | | - else { |
| 516 | + if ( !is_array( $r ) ) { |
| 517 | + $stripe = ''; |
| 518 | + $table .= "<tr>$r</tr>"; # Just add as HTML content if not a row |
| 519 | + } else { |
| 520 | + $table .= "<tr$stripe>"; |
519 | 521 | |
520 | 522 | # Create special values for this row |
521 | 523 | $tsc = $this->formatDate( $r['created'] ); |
— | — | @@ -555,8 +557,8 @@ |
556 | 558 | $table .= "$row[$col]\n"; |
557 | 559 | } |
558 | 560 | } |
| 561 | + $table .= "</tr>\n"; |
559 | 562 | } |
560 | | - $table .= "</tr>\n"; |
561 | 563 | } |
562 | 564 | $table .= "</table>\n"; |
563 | 565 | |