Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | // Record new user's data |
159 | 159 | $lastUser = $row->user_name; |
160 | 160 | $lastUserData = array( 'name' => $lastUser ); |
161 | | - if ( $fld_blockinfo ) { |
| 161 | + if ( $fld_blockinfo && !is_null( $row->blocker_name ) ) { |
162 | 162 | $lastUserData['blockedby'] = $row->blocker_name; |
163 | 163 | $lastUserData['blockreason'] = $row->ipb_reason; |
164 | 164 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -336,7 +336,9 @@ |
337 | 337 | allpages, and allusers |
338 | 338 | * (bug 24236) Add add, remove, add-self, remove-self tags to meta=siteinfo&siprop=usergroups |
339 | 339 | * (bug 24484) Add prop=pageprops module |
340 | | -* (bug 24330) Add &redirect parameter to ?action=edit |
| 340 | +* (bug 24330) Add &redirect parameter to ?action=edit |
| 341 | +* (bug 24722) For list=allusers&auprop=blockinfo, only show blockedby and blockreason if |
| 342 | + the user is actually blocked. |
341 | 343 | |
342 | 344 | === Languages updated in 1.17 === |
343 | 345 | |