summaryrefslogtreecommitdiffstats
path: root/lib/class/rating.class.php
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2007-09-11 00:09:27 +0000
committerxgizzmo <xgizzmo@ampache>2007-09-11 00:09:27 +0000
commitb388cc515532f31b289460c31b0251fcc979727a (patch)
tree372878114ccf595bf52c2612347e39c8ac7b4fcb /lib/class/rating.class.php
parent8edeba995590a2c75d0ce55d431c6fd5190817da (diff)
downloadampache-b388cc515532f31b289460c31b0251fcc979727a.tar.gz
ampache-b388cc515532f31b289460c31b0251fcc979727a.tar.bz2
ampache-b388cc515532f31b289460c31b0251fcc979727a.zip
Really fixed a rating issue this time
Diffstat (limited to 'lib/class/rating.class.php')
-rw-r--r--lib/class/rating.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php
index c963b5f0..1ddd842a 100644
--- a/lib/class/rating.class.php
+++ b/lib/class/rating.class.php
@@ -69,7 +69,7 @@ class Rating {
$results = Dba::fetch_assoc($db_results);
- return $results['rating'];
+ return $results['score'];
} // get_user
@@ -89,7 +89,7 @@ class Rating {
while ($r = Dba::fetch_assoc($db_results)) {
$i++;
- $total += $r['rating'];
+ $total += $r['score'];
} // while we're pulling results
if ($total > 0) {