X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FUserArray.php;h=1f55ef355284eeb4d88f1ea552a89dae9db26ab4;hb=c58873fb4213447615761a55fd2be72fa53f8ec2;hp=3b8f5c10772843b80148c1449e081e40ec9d93ce;hpb=ad8b234b1bf30dc342284b1a8fc39a4b27ce0840;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/UserArray.php b/includes/UserArray.php index 3b8f5c1077..1f55ef3552 100644 --- a/includes/UserArray.php +++ b/includes/UserArray.php @@ -44,7 +44,7 @@ abstract class UserArray implements Iterator { $ids = array_map( 'intval', (array)$ids ); // paranoia if ( !$ids ) { // Database::select() doesn't like empty arrays - return new ArrayIterator(array()); + return new ArrayIterator( array() ); } $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->select( 'user', '*', array( 'user_id' => $ids ),