r49352 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49351‎ | r49352 | r49353 >
Date:20:15, 9 April 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Fix display of array voter properties such as groups and lists.
Modified paths:
  • /trunk/extensions/SecurePoll/includes/DetailsPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SecurePoll/includes/DetailsPage.php
@@ -63,6 +63,9 @@
6464 $wgOut->addHTML( '<table class="TablePager">' );
6565 $props = SecurePoll_Voter::decodeProperties( $row->voter_properties );
6666 foreach ( $props as $name => $value ) {
 67+ if ( is_array( $value ) ) {
 68+ $value = implode( ', ', $value );
 69+ }
6770 $wgOut->addHTML(
6871 '<td class="securepoll-detail-header">' .
6972 htmlspecialchars( $name ) . "</td>\n" .

Status & tagging log