From fe3076c95a22d33a72f8a2996576f58f90993003 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 29 Oct 2010 21:30:20 +0000 Subject: [PATCH] Conditionals in loops to foreachs --- ContributionScores_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContributionScores_body.php b/ContributionScores_body.php index aac9ebe..57fc880 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -102,7 +102,7 @@ class ContributionScores extends IncludableSpecialPage { $skin = $wgUser->getSkin(); $altrow = ''; - while ( $row = $dbr->fetchObject( $res ) ) { + foreach ( $res as $row ) { $output .= "\n" . round($row->wiki_rank,0) . "\n" . $row->page_count . "\n" .