Index: trunk/extensions/Ratings/Ratings.class.php |
— | — | @@ -116,7 +116,7 @@ |
117 | 117 | ) |
118 | 118 | ); |
119 | 119 | |
120 | | - while ( $vote = $votes->fetchObject() ) { |
| 120 | + foreach( $votes as $vote ) { |
121 | 121 | $tags[$vote->vote_prop_id]['count']++; |
122 | 122 | $tags[$vote->vote_prop_id]['total'] += $vote->vote_value; |
123 | 123 | } |