Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -1239,6 +1239,9 @@ |
1240 | 1240 | public function autoMarkPatrolled( $article, $user, $text, $c, $m, $a, $b, $flags, $rev ) { |
1241 | 1241 | global $wgUser, $wgFlaggedRevs; |
1242 | 1242 | |
| 1243 | + if( !$rev ) |
| 1244 | + return true; |
| 1245 | + |
1243 | 1246 | if( !$wgFlaggedRevs->isReviewable( $article->getTitle() ) && $wgUser->isAllowed('patrolother') ) { |
1244 | 1247 | $dbw = wfGetDB( DB_MASTER ); |
1245 | 1248 | $dbw->update( 'recentchanges', |