Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php |
— | — | @@ -66,10 +66,9 @@ |
67 | 67 | } |
68 | 68 | |
69 | 69 | $resultIPs = array(); |
70 | | - foreach ( array_keys( $ips ) as $ip ) { |
71 | | - $newIp = $ips[$ip]; |
72 | | - $newIp['address'] = $ip; |
73 | | - $resultIPs[] = $newIp; |
| 70 | + foreach ( $ips as $ip => $data ) { |
| 71 | + $data['address'] = $ip; |
| 72 | + $resultIPs[] = $data; |
74 | 73 | } |
75 | 74 | |
76 | 75 | CheckUser::addLogEntry( 'userips', 'user', $target, $reason, $user_id ); |