Index: trunk/extensions/EducationProgram/specials/SpecialEducationProgram.php |
— | — | @@ -147,9 +147,8 @@ |
148 | 148 | protected function getByGenderTable( $terms ) { |
149 | 149 | $html = Html::openElement( 'table', array( 'class' => 'wikitable ep-termbreakdown' ) ); |
150 | 150 | |
151 | | - $term = array_shift( $terms ); |
152 | | - $rows = array_keys( $term ); |
153 | | - array_unshift( $terms, $term ); |
| 151 | + reset( $terms ); |
| 152 | + $rows = array_keys( $terms[key( $terms )] ); |
154 | 153 | |
155 | 154 | $html .= '<tr>'; |
156 | 155 | |