~ubuntu-branches/ubuntu/wily/ampache/wily

« back to all changes in this revision

Viewing changes to lib/class/rating.class.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-07-19 20:49:51 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20130719204951-0t0bfke038j9ojht
Tags: 3.6-rzb2752+dfsg-0ubuntu1
* New upstream snapshot.
* Switched packaging to use xz compression.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
        while ($row = Dba::fetch_assoc($db_results)) {
91
91
            $ratings[$row['object_id']] = $row['rating'];
92
 
          }
 
92
        }
93
93
 
94
94
        foreach ($ids as $id) {
95
95
            // First store the user-specific rating
106
106
                $rating = 0;
107
107
            }
108
108
            else {
109
 
                $rating = round($ratings[$id]['rating'], 1);
 
109
                $rating = round($ratings[$id], 1);
110
110
            }
111
111
            parent::add_to_cache('rating_' . $type . '_all', $id, $rating);
112
112
        }