aboutsummaryrefslogtreecommitdiffstats
path: root/includes/UserArray.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/UserArray.php')
-rw-r--r--includes/UserArray.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/UserArray.php b/includes/UserArray.php
index 12b779e018db..90d1134a51b7 100644
--- a/includes/UserArray.php
+++ b/includes/UserArray.php
@@ -47,8 +47,12 @@ abstract class UserArray implements Iterator {
return new ArrayIterator( array() );
}
$dbr = wfGetDB( DB_SLAVE );
- $res = $dbr->select( 'user', '*', array( 'user_id' => $ids ),
- __METHOD__ );
+ $res = $dbr->select(
+ 'user',
+ User::selectFields(),
+ array( 'user_id' => array_unique( $ids ) ),
+ __METHOD__
+ );
return self::newFromResult( $res );
}