Index: trunk/phase3/includes/Pager.php |
— | — | @@ -868,7 +868,12 @@ |
869 | 869 | |
870 | 870 | function formatRow( $row ) { |
871 | 871 | $this->mCurrentRow = $row; # In case formatValue etc need to know |
872 | | - $s = Xml::openElement( 'tr', $this->getRowAttrs($row) ); |
| 872 | + $classArray = $this->getRowAttrs($row); |
| 873 | + if ( $classArray['class'] === '' ) { |
| 874 | + $s = Html::openElement( 'tr' ); |
| 875 | + } else { |
| 876 | + $s = Html::openElement( 'tr', $classArray ); |
| 877 | + } |
873 | 878 | $fieldNames = $this->getFieldNames(); |
874 | 879 | foreach ( $fieldNames as $field => $name ) { |
875 | 880 | $value = isset( $row->$field ) ? $row->$field : null; |