Index: trunk/extensions/ContactPage/SpecialContact.php |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | $action = $wgRequest->getVal( 'action' ); |
46 | 46 | |
47 | 47 | $nu = User::newFromName( $wgContactUser ); |
48 | | - if( is_null( $nu ) || $nu->canReceiveEmail() ) { |
| 48 | + if( is_null( $nu ) || !$nu->canReceiveEmail() ) { |
49 | 49 | wfDebug( "Target is invalid user or can't receive.\n" ); |
50 | 50 | $wgOut->showErrorPage( 'noemailtitle', 'noemailtext' ); |
51 | 51 | return; |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | return; |
72 | 72 | } |
73 | 73 | |
74 | | - $f = new EmailContactForm( $nu, $par); |
| 74 | + $f = new EmailContactForm( $nu, $par ); |
75 | 75 | |
76 | 76 | if ( 'success' == $action ) { |
77 | 77 | wfDebug( __METHOD__ . ": success.\n" ); |