r81959 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81958‎ | r81959 | r81960 >
Date:11:42, 11 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Then do the swap to foreach properly
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilterVariableHolder.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilterVariableHolder.php
@@ -330,8 +330,8 @@
331331 );
332332
333333 $users = array();
334 - while ( $user = $dbr->fetchRow( $res ) ) {
335 - $users[] = $user[0];
 334+ foreach( $res as $row ) {
 335+ $users[] = $row->rev_user_text;
336336 }
337337 $result = $users;
338338 break;

Status & tagging log