Index: trunk/phase3/includes/specials/SpecialEmailuser.php |
— | — | @@ -303,7 +303,7 @@ |
304 | 304 | } |
305 | 305 | |
306 | 306 | $nu = User::newFromName( $nt->getText() ); |
307 | | - if( is_null( $nu ) || !$nu->getId() ) { |
| 307 | + if( !$nu instanceof Title || !$nu->getId() ) { |
308 | 308 | wfDebug( "Target is invalid user.\n" ); |
309 | 309 | return "notarget"; |
310 | 310 | } else if ( !$nu->isEmailConfirmed() ) { |