Index: trunk/extensions/Contest/api/ApiMailContestants.php |
— | — | @@ -72,7 +72,8 @@ |
73 | 73 | |
74 | 74 | $contestants = ContestContestant::s()->select( array( 'id', 'user_id', 'contest_id', 'email' ), $conditions ); |
75 | 75 | |
76 | | - if ( $contestants !== false && count( $contestants ) > 0 ) { |
| 76 | + $contestantCount = count( $contestants ); |
| 77 | + if ( $contestants !== false && $contestantCount > 0 ) { |
77 | 78 | $setSize = ContestSettings::get( 'reminderJobSize' ); |
78 | 79 | $limit = count( $contestants ); |
79 | 80 | |
— | — | @@ -94,7 +95,7 @@ |
95 | 96 | $this->getResult()->addValue( |
96 | 97 | null, |
97 | 98 | 'contestantcount', |
98 | | - count( $contestants ) |
| 99 | + $contestantCount |
99 | 100 | ); |
100 | 101 | } |
101 | 102 | } |