Index: trunk/extensions/ArticleFeedback/api/ApiQueryArticleFeedback.php |
— | — | @@ -44,12 +44,11 @@ |
45 | 45 | |
46 | 46 | $rev = null; |
47 | 47 | foreach ( $res as $i => $row ) { |
| 48 | + // All the revs and pageIds will be the same for all rows, these are shortcuts |
48 | 49 | $pageId = $row->aap_page_id; |
| 50 | + // This is special however, because we need this data later for expired calculation |
| 51 | + $rev = $row->aap_revision; |
49 | 52 | |
50 | | - if ( is_null( $rev ) ) { |
51 | | - $rev = $row->aap_revision; |
52 | | - } |
53 | | - |
54 | 53 | if ( !isset( $ratings[$pageId] ) ) { |
55 | 54 | $page = array( |
56 | 55 | 'pageid' => $pageId, |