Index: trunk/extensions/MoodBar/ApiMoodBarSetUserEmail.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | |
47 | 47 | case 'resendverification': |
48 | 48 | //only sends the email if the email has not been verified |
49 | | - if ( $wgUser->getEmailAuthenticationTimestamp() === null ) { |
| 49 | + if ( $wgUser->getEmail() && $wgUser->isEmailConfirmed() == false ) { |
50 | 50 | $status = $wgUser->sendConfirmationMail( 'set' ); |
51 | 51 | if ( !$status->isGood() ) { |
52 | 52 | $error = $status->getWikiText( 'mailerror' ); |