Index: trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php |
— | — | @@ -90,13 +90,13 @@ |
91 | 91 | // -1 == Rating last time, but abstained this time |
92 | 92 | $countChange = 0; |
93 | 93 | if ( $lastRating === false || $lastRating === 0 ) { |
94 | | - if ( $newRating === 0 ) { |
| 94 | + if ( $thisRating === 0 ) { |
95 | 95 | $countChange = 0; |
96 | 96 | } else { |
97 | 97 | $countChange = 1; |
98 | 98 | } |
99 | 99 | } else { // Last rating was > 0 |
100 | | - if ( $newRating === 0 ) { |
| 100 | + if ( $thisRating === 0 ) { |
101 | 101 | $countChange = -1; |
102 | 102 | } else { |
103 | 103 | $countChange = 0; |