r114566 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114565‎ | r114566 | r114567 >
Date:18:19, 28 March 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r114564; also apply fix here
Modified paths:
  • /trunk/extensions/EducationProgram/specials/SpecialEducationProgram.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/specials/SpecialEducationProgram.php
@@ -147,9 +147,8 @@
148148 protected function getByGenderTable( $terms ) {
149149 $html = Html::openElement( 'table', array( 'class' => 'wikitable ep-termbreakdown' ) );
150150
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 )] );
154153
155154 $html .= '<tr>';
156155

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114564fixed array issuejeroendedauw18:04, 28 March 2012

Status & tagging log