Index: trunk/extensions/ArticleFeedback/api/ApiQueryArticleFeedback.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | $res = $this->select( __METHOD__ ); |
37 | 37 | $ratings = array( $params['pageid'] => array( 'pageid' => $params['pageid'] ) ); |
38 | 38 | foreach ( $res as $i => $row ) { |
39 | | - if ( !isset( $ratings[$params['pageid']] ) ) { |
| 39 | + if ( !isset( $ratings[$params['pageid']]['revid'] ) ) { |
40 | 40 | $ratings[$params['pageid']]['revid'] = $row->aap_revision; |
41 | 41 | } |
42 | 42 | if ( !isset( $ratings[$params['pageid']]['ratings'] ) ) { |