Index: trunk/extensions/ArticleAssessmentPilot/api/ApiListArticleAssessment.php |
— | — | @@ -90,7 +90,8 @@ |
91 | 91 | } |
92 | 92 | |
93 | 93 | //Only can actually be "stale" if the user has rated the article before |
94 | | - if ( $params['userrating'] && $userRatedArticle ) { |
| 94 | + //We need a target revision to be able to calculate "stale" against |
| 95 | + if ( $params['userrating'] && $userRatedArticle && $params['revid'] ) { |
95 | 96 | $this->resetQueryParams(); |
96 | 97 | |
97 | 98 | $this->addTables( 'revision' ); |