Index: trunk/extensions/ArticleAssessmentPilot/api/ApiQueryArticleAssessment.php |
— | — | @@ -37,12 +37,12 @@ |
38 | 38 | $this->addWhereFld( 'aa_user_anon_token', $params['anontoken'] ); |
39 | 39 | } |
40 | 40 | |
41 | | - $this->addWhereFld( 'aa_user_id', $wgUser->getId() ); |
42 | 41 | $this->addTables( 'article_assessment' ); |
43 | 42 | $this->addJoinConds( array( |
44 | 43 | 'article_assessment' => array( 'LEFT JOIN', array( |
45 | 44 | 'aa_page_id=aap_page_id', |
46 | | - 'aa_rating_id=aap_rating_id' ) ), |
| 45 | + 'aa_rating_id=aap_rating_id', |
| 46 | + 'aa_user_id=' . $wgUser->getId() ) ), |
47 | 47 | ) |
48 | 48 | ); |
49 | 49 | |