Index: votingapi.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/votingapi/votingapi.module,v
retrieving revision 1.46.2.25
diff -u -p -r1.46.2.25 votingapi.module
--- votingapi.module	10 Oct 2010 00:55:54 -0000	1.46.2.25
+++ votingapi.module	24 Jan 2011 23:49:02 -0000
@@ -484,11 +484,9 @@ function _votingapi_get_standard_results
   $results = db_query($sql, $content_type, $content_id);
 
   while ($result = db_fetch_array($results)) {
-    $cache[$result['tag']][$result['value_type']]['count'] = $result['value_count'];
-    $cache[$result['tag']][$result['value_type']]['average'] = $result['value_sum'] / $result['value_count'];
-    if ($result['value_type'] == 'points') {
-      $cache[$result['tag']][$result['value_type']]['sum'] = $result['value_sum'];
-    }
+    $cache[$result['tag']]['points']['count'] = $result['value_count'];
+    $cache[$result['tag']]['percent']['average'] = $result['value_sum'] / $result['value_count'];
+    $cache[$result['tag']]['points']['sum'] = $result['value_sum'];
   }
 
   $sql  = "SELECT v.tag, v.value, v.value_type, COUNT(1) AS score ";
