Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | global $wgAuth, $wgEmailConfirmToEdit; |
137 | 137 | |
138 | 138 | |
139 | | - if ( '' != $this->mNewpass && $wgAuth->allowPasswordChange() ) { |
| 139 | + if ( ($this->mNewpass !== '' || $this->mOldpass !== '' ) && $wgAuth->allowPasswordChange() ) { |
140 | 140 | if ( $this->mNewpass != $this->mRetypePass ) { |
141 | 141 | wfRunHooks( 'PrefsPasswordAudit', array( $wgUser, $this->mNewpass, 'badretype' ) ); |
142 | 142 | $this->mainPrefsForm( 'error', wfMsg( 'badretype' ) ); |