r76692 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76691‎ | r76692 | r76693 >
Date:18:09, 15 November 2010
Author:demon
Status:ok
Tags:
Comment:
First followup to r75408, sanity check on result object
Modified paths:
  • /trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php
@@ -1007,8 +1007,10 @@
10081008 );
10091009
10101010 $ids = array();
1011 - foreach( $res as $r ) {
1012 - $ids[] = $r->rev_id;
 1011+ if( $res ) {
 1012+ foreach( $res as $r ) {
 1013+ $ids[] = $r->rev_id;
 1014+ }
10131015 }
10141016
10151017 // List of revisions being undone...

Follow-up revisions

RevisionCommit summaryAuthorDate
r76968Follow-up r76692: just redirect out in this very unlikely case (rather than f...aaron21:45, 18 November 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75408(bug 25294) "Reject" button confirmation screen in Pending Changedemon02:36, 26 October 2010

Status & tagging log