Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -595,7 +595,7 @@ |
596 | 596 | $dbw = wfGetDB( DB_MASTER );
|
597 | 597 | $cutoff = $dbw->timestamp( time() - $wgRejectedAccountMaxAge );
|
598 | 598 | $accountrequests = $dbw->tableName( 'account_requests' );
|
599 | | - $sql = "DELETE FROM $accountrequests WHERE acr_registration < '{$cutoff}'";
|
| 599 | + $sql = "DELETE FROM $accountrequests WHERE acr_rejected = 1 AND acr_registration < '{$cutoff}'";
|
600 | 600 | $dbw->query( $sql );
|
601 | 601 | }
|
602 | 602 | }
|