Fix epic fail in r64860
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 10 Apr 2010 11:10:53 +0000 (11:10 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 10 Apr 2010 11:10:53 +0000 (11:10 +0000)
includes/specials/SpecialEmailuser.php

index 6d42f31..12b0dd1 100644 (file)
@@ -303,7 +303,7 @@ class EmailUserForm {
                }
 
                $nu = User::newFromName( $nt->getText() );
-               if( !$nu instanceof Title || !$nu->getId() ) {
+               if( !$nu instanceof User || !$nu->getId() ) {
                        wfDebug( "Target is invalid user.\n" );
                        return "notarget";
                } else if ( !$nu->isEmailConfirmed() ) {