Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php |
— | — | @@ -1010,8 +1010,10 @@ |
1011 | 1011 | |
1012 | 1012 | $dbr = wfGetDB( DB_SLAVE ); |
1013 | 1013 | $oldid = $dbr->addQuotes( $oldRev->getId() ); |
| 1014 | + $newid = $dbr->addQuotes( $newRev->getId() ); |
1014 | 1015 | $res = $dbr->select( 'revision', 'rev_id', |
1015 | | - array( 'rev_id > ' . $oldid, 'rev_page' => $oldRev->getPage() ), |
| 1016 | + array( 'rev_id > ' . $oldid, 'rev_id <= ' . $newid, |
| 1017 | + 'rev_page' => $oldRev->getPage() ), |
1016 | 1018 | __METHOD__ |
1017 | 1019 | ); |
1018 | 1020 | |