Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -518,11 +518,11 @@ |
519 | 519 | $index = 'user_timestamp'; |
520 | 520 | # @todo FIXME: Other groups may have 'bot' rights |
521 | 521 | $join_conds['user_groups'] = array( 'LEFT JOIN', "ug_user = rev_user AND ug_group = 'bot'" ); |
522 | | - $join_conds['recentchanges'] = array( 'INNER JOIN', "rev_id = rc_this_oldid" ); |
| 522 | + $join_conds['recentchanges'] = array( 'INNER JOIN', "rev_id = rc_this_oldid AND rev_timestamp = rc_timestamp" ); |
523 | 523 | } else { |
524 | 524 | $tables = array( 'recentchanges', 'page', 'revision' ); |
525 | 525 | $condition['rev_user_text'] = $this->target; |
526 | | - $join_conds['recentchanges'] = array( 'INNER JOIN', "rev_id = rc_this_oldid" ); |
| 526 | + $join_conds['recentchanges'] = array( 'INNER JOIN', "rev_id = rc_this_oldid AND rev_timestamp = rc_timestamp" ); |
527 | 527 | $index = 'usertext_timestamp'; |
528 | 528 | } |
529 | 529 | if( $this->deletedOnly ) { |