Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | // any groups, it's a bit silly to give them the user search prompt. |
51 | 51 | global $wgUser, $wgRequest, $wgOut; |
52 | 52 | |
53 | | - if( $par ) { |
| 53 | + if( $par !== null ) { |
54 | 54 | $this->mTarget = $par; |
55 | 55 | } else { |
56 | 56 | $this->mTarget = $wgRequest->getVal( 'user' ); |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | |
69 | 69 | $available = $this->changeableGroups(); |
70 | 70 | |
71 | | - if ( !$this->mTarget ) { |
| 71 | + if ( $this->mTarget === null ) { |
72 | 72 | /* |
73 | 73 | * If the user specified no target, and they can only |
74 | 74 | * edit their own groups, automatically set them as the |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | } |
123 | 123 | |
124 | 124 | // show some more forms |
125 | | - if( $this->mTarget ) { |
| 125 | + if( $this->mTarget !== null ) { |
126 | 126 | $this->editUserGroupsForm( $this->mTarget ); |
127 | 127 | } |
128 | 128 | } |
— | — | @@ -291,7 +291,7 @@ |
292 | 292 | } |
293 | 293 | } |
294 | 294 | |
295 | | - if( $name == '' ) { |
| 295 | + if( $name === '' ) { |
296 | 296 | return new WikiErrorMsg( 'nouserspecified' ); |
297 | 297 | } |
298 | 298 | |
— | — | @@ -311,7 +311,7 @@ |
312 | 312 | } |
313 | 313 | } else { |
314 | 314 | $name = User::getCanonicalName( $name ); |
315 | | - if( !$name ) { |
| 315 | + if( $name === false ) { |
316 | 316 | // invalid name |
317 | 317 | return new WikiErrorMsg( 'nosuchusershort', $username ); |
318 | 318 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | settings changed |
31 | 31 | * (bug 22606) The body of e-mail address confirmation message is now different |
32 | 32 | when the address changed |
| 33 | +* (bug 22664) Special:Userrights now accepts '0' as a valid user name |
33 | 34 | |
34 | 35 | == API changes in 1.17 == |
35 | 36 | |