Index: trunk/phase3/includes/Pager.php |
— | — | @@ -925,22 +925,27 @@ |
926 | 926 | |
927 | 927 | /** |
928 | 928 | * @protected |
929 | | - * @param $row Array |
| 929 | + * @param stdClass $row |
930 | 930 | * @return String HTML |
931 | 931 | */ |
932 | 932 | function formatRow( $row ) { |
933 | | - $this->mCurrentRow = $row; # In case formatValue etc need to know |
| 933 | + $this->mCurrentRow = $row; // In case formatValue etc need to know |
934 | 934 | $s = Xml::openElement( 'tr', $this->getRowAttrs( $row ) ); |
935 | 935 | $fieldNames = $this->getFieldNames(); |
| 936 | + |
936 | 937 | foreach ( $fieldNames as $field => $name ) { |
937 | 938 | $value = isset( $row->$field ) ? $row->$field : null; |
938 | 939 | $formatted = strval( $this->formatValue( $field, $value ) ); |
| 940 | + |
939 | 941 | if ( $formatted == '' ) { |
940 | 942 | $formatted = ' '; |
941 | 943 | } |
| 944 | + |
942 | 945 | $s .= Xml::tags( 'td', $this->getCellAttrs( $field, $value ), $formatted ); |
943 | 946 | } |
| 947 | + |
944 | 948 | $s .= "</tr>\n"; |
| 949 | + |
945 | 950 | return $s; |
946 | 951 | } |
947 | 952 | |