Index: trunk/extensions/AntiSpoof/batchAntiSpoof.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | |
14 | 14 | $result = $dbw->select( 'user', 'user_name', null, 'batchAntiSpoof.php' ); |
15 | 15 | $n = 0; |
16 | | -foreach( $res as $row ) { |
| 16 | +foreach( $result as $row ) { |
17 | 17 | if ( $n++ % $batchSize == 0 ) { |
18 | 18 | echo "$wgDBname $n\n"; |
19 | 19 | } |